Skip to content

Latest commit

 

History

History
executable file
·
44 lines (30 loc) · 3.26 KB

SampleRun_Rollback.md

File metadata and controls

executable file
·
44 lines (30 loc) · 3.26 KB

Output from Demo Run - Rollback

[root@optima-ansible ansible-setup-passwordless-ssh]# ansible-playbook -i hosts ansible_setup_passwordless_ssh_rollback.yml
Type 'YES' to ROLLBACK the passwordless login configuration to the remote hosts: [NO]: YES

PLAY [local_host] ***************************************************************************************************************************************************************************************************

TASK [Check Confirmation] *******************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [check .ssh local directory exists] ****************************************************************************************************************************************************************************
ok: [localhost]

TASK [check .ssh key file exists] ***********************************************************************************************************************************************************************************
ok: [localhost] => (item=ansible_rsa)
ok: [localhost] => (item=ansible_rsa.pub)

TASK [fail if .ssh key is missing] **********************************************************************************************************************************************************************************
skipping: [localhost]

TASK [get ssh key to remove from the file] **************************************************************************************************************************************************************************
ok: [localhost]

PLAY [ansible_setup_passwordless_setup_group] ***********************************************************************************************************************************************************************

TASK [delete the ssh key from the remote hosts] *********************************************************************************************************************************************************************
changed: [greenhat]

PLAY [localhost] ****************************************************************************************************************************************************************************************************

TASK [delete the 2 key files from localhost] ************************************************************************************************************************************************************************
changed: [localhost] => (item=ansible_rsa)
changed: [localhost] => (item=ansible_rsa.pub)

TASK [clear the ~/.ssh/config file] *********************************************************************************************************************************************************************************
changed: [localhost]

PLAY RECAP **********************************************************************************************************************************************************************************************************
greenhat                   : ok=1    changed=1    unreachable=0    failed=0   
localhost                  : ok=5    changed=2    unreachable=0    failed=0   

[root@optima-ansible ansible-setup-passwordless-ssh]#