diff --git a/README.md b/README.md index efd70fd..54600eb 100644 --- a/README.md +++ b/README.md @@ -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** diff --git a/upgrade-playbook.yaml b/upgrade-playbook.yaml new file mode 100644 index 0000000..40876d1 --- /dev/null +++ b/upgrade-playbook.yaml @@ -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 +