From e21ac00ff7fe80ef6346020b10c8670312d2f268 Mon Sep 17 00:00:00 2001 From: Upendra Sahu Date: Thu, 9 Apr 2020 12:46:50 +0530 Subject: [PATCH] upgrade playbook --- README.md | 3 ++- upgrade-playbook.yaml | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 upgrade-playbook.yaml 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 +