Access - Create Access Keys - Ansible
Aim
Details of the output from Ansible
Ansible
$ cd ansible/
$ ansible-playbook playbook.yml
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
[WARNING]: Collection community.aws does not support Ansible version 2.10.8
PLAY [Access - Create Access Keys] ****************************************************************************************************************************************************************************************
TASK [Gathering Facts] ****************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Create a new access key] ********************************************************************************************************************************************************************************************
[WARNING]: Collection amazon.aws does not support Ansible version 2.10.8
changed: [localhost]
TASK [Show AKID from the generated Key] ***********************************************************************************************************************************************************************************
ok: [localhost] => {
"msg": "AKID: AKIA****************"
}
TASK [Show secret from the generated Key] *********************************************************************************************************************************************************************************
ok: [localhost] => {
"msg": "SECRET: *******************************"
}
PLAY RECAP ****************************************************************************************************************************************************************************************************************
localhost : ok=4 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0