I have 3 scripts that must be run on server one by one. for example:
- name: find config
shell: /data/scripts/config1
become: yes
become_user: root
tags: find_config
- name: change config
shell: /data/scripts/config2
become: yes
become_user: root
tags: change_config
- name: confirm config
shell: /data/scripts/config3
become: yes
become_user: dbusr1
tags: confirm_config
in second script config2
there is a reboot command and then the rest of script will be run at start up. something like this:
some variables
.
.
commands before reboot
.
.
reboot command
.
.
commands that run at start up
does this reboot affect ansible tasks? how i can write tasks that wait until commands that run at start up
be run then execute config3
? is this even possible in ansible? what modules should i use?