3/10/2023 0 Comments Playbook 012 serialansible-server ~]# ansible-playbook -i hosts_lists reboot_wait_to_come_back.yml -k Here is the block of code that we use to reboot the target hosts and perform post checks. Reboot the node/server and wait to come back : ( Prior to 2.7) Reboot the host and wait for the host to come back – Ansible This article will walk through how Ansible 2.7 engine codes reduce the block of code. Post reboot, we might need to get few commands output to validate those changes. making the configuration changes or installing the OS patches which require a reboot. Prior to Ansible engine 2.7, To reboot the target hosts, we need to define a block of code to reboot the server and wait until the hosts to come back. Open source community keeps trying to make the code much simpler on the newer version. Ansibleis a simple configuration management tool.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |