File tree Expand file tree Collapse file tree
templates/var/lib/ansible Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11mkdir -p /var/lib/os-apply-config/templates/var/lib/ansible/playbooks
22cat << 'EOF' > /var/lib/os-apply-config/templates/var/lib/ansible/playbooks/scaleup.yml
33{{=<% %>=}}
4+ - include : /var/lib/ansible/playbooks/quota.yml
5+
46- include : /var/lib/ansible/playbooks/dns.yml
57
68- include : /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-node/scaleup.yml
Original file line number Diff line number Diff line change @@ -2,17 +2,26 @@ mkdir -p /var/lib/os-apply-config/templates/var/lib/ansible/roles/reboot/tasks/
22cat << 'EOF' > /var/lib/os-apply-config/templates/var/lib/ansible/roles/reboot/tasks/main.yml
33{{=<% %>=}}
44---
5+ - name : check if grpquota mount options are already set
6+ shell : /usr/bin/findmnt / | grep grpquota
7+ register : proc_line
8+ changed_when : False
9+ ignore_errors : yes
10+
511- name : Reboot server
612 command : /usr/bin/systemd-run --on-active=5 /usr/bin/systemctl reboot
713 async : 0
814 poll : 0
15+ when : proc_line.rc == 1
916
1017- name : Wait for the server to reboot
1118 sudo : no
1219 local_action : wait_for host="{{ inventory_hostname }}" search_regex=OpenSSH port=22 timeout=300 state=stopped
20+ when : proc_line.rc == 1
1321
1422- name : Wait for the server to finish rebooting
1523 sudo : no
1624 local_action : wait_for host="{{ inventory_hostname }}" search_regex=OpenSSH port=22 timeout=300 state=started
25+ when : proc_line.rc == 1
1726<%={{ }}= % >
1827EOF
You can’t perform that action at this time.
0 commit comments