Skip to content

Commit

Permalink
upgrade playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
Upendra Sahu committed Apr 9, 2020
1 parent 1ea1d67 commit e21ac00
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ sudo ./install.sh upgrade
2) ansible playbook uses install.sh internally
3) install ansible using **pip install -r requirements.txt**
4) update hosts file, sample can be found in hosts.sample
5) execute command **ansible-playbook -vv -b -i hosts --key-file=ssh-key.pem playbook.yaml**
5) To Install: execute command **ansible-playbook -vv -b -i hosts --key-file=ssh-key.pem playbook.yaml**
6) To Upgrade: execute command **ansible-playbook -vv -b -i hosts --key-file=ssh-key.pem upgrade-playbook.yaml**
11 changes: 11 additions & 0 deletions upgrade-playbook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
- name: install sfagent
become: yes
hosts: all
tasks:
- name: Transfer install.sh script
copy: src=install.sh dest=/tmp/install.sh mode=0777

- name: Execute install.sh
command: /tmp/install.sh upgrade

0 comments on commit e21ac00

Please sign in to comment.