Created
September 2, 2021 05:03
-
-
Save jcnars/6858344c22cef0d94b851a17de68f1c8 to your computer and use it in GitHub Desktop.
Latest run, with changes to incorporate review comments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✔ ~/050521-mntrl-instlln/bms-toolkit [host-provision L|✚ 2…19] | |
21:47 $ ./host-provision.sh --comma-separated-dbhosts 172.16.30.1 --instance-ssh-user ansible10 | |
Command used: | |
./host-provision.sh --comma-separated-dbhosts 172.16.30.1 --instance-ssh-user ansible10 | |
Running with parameters from command line or environment variables: | |
INSTANCE_SSH_USER=ansible10 | |
INVENTORY_FILE=172.16.30.1, | |
ORA_CS_HOSTS=172.16.30.1 | |
Found Ansible at /usr/bin/ansible-playbook | |
Running Ansible playbook: /usr/bin/ansible-playbook -i 172.16.30.1, host-provision.yml | |
PLAY [Create private public key pair locally] ********************************************************************************************************************************** | |
TASK [Gathering Facts] ********************************************************************************************************************************************************* | |
ok: [localhost] | |
TASK [host-provision : Creates .ssh directory in control node if it does not exist] ******************************************************************************************** | |
ok: [localhost] | |
TASK [host-provision : ssh-keygen | Create private and public key pair locally in control node] ******************************************************************************** | |
ok: [localhost] | |
Enter customeradmin password: | |
PLAY [Create user and transfer public key to set up ssh equivalence] *********************************************************************************************************** | |
TASK [Gathering Facts] ********************************************************************************************************************************************************* | |
ok: [172.16.30.1] | |
TASK [Verify that Ansible on control node meets the version requirements] ****************************************************************************************************** | |
ok: [172.16.30.1] => { | |
"changed": false, | |
"msg": "Ansible version is 2.9.25, continuing" | |
} | |
TASK [host-provision : user-setup | Create ansible user] *********************************************************************************************************************** | |
changed: [172.16.30.1] | |
TASK [host-provision : user-setup | Slurp public key contents] ***************************************************************************************************************** | |
ok: [172.16.30.1 -> localhost] | |
TASK [host-provision : user-setup | Store public key contents to be transferred from control node to DB hosts] **************************************************************** | |
ok: [172.16.30.1] | |
TASK [host-provision : user-setup | Transfer public key from control node to DB hosts] ***************************************************************************************** | |
changed: [172.16.30.1] | |
TASK [host-provision : user-setup | Add sudoers file for ansible] ************************************************************************************************************** | |
changed: [172.16.30.1] | |
PLAY [Perform config tasks (SSH equivalence validation, LVM setup, etc)] ******************************************************************************************************* | |
TASK [Gathering Facts] ********************************************************************************************************************************************************* | |
ok: [172.16.30.1] | |
TASK [host-provision : Validate ssh equivalence (passwordless connection) and sudo escalation for new user] ******************************************************************** | |
ok: [172.16.30.1] | |
PLAY RECAP ********************************************************************************************************************************************************************* | |
172.16.30.1 : ok=9 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 | |
localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment