Created
September 2, 2021 21:01
-
-
Save jcnars/d0e4887c736ddbd3dcc5c9a26d4d24db to your computer and use it in GitHub Desktop.
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
✔ ~/DriveFS/My Drive/bmaas/host_provisioning/bms-toolkit [host-provision|✚ 6] | |
13:53 $ runlocalssh ./host-provision.sh --dbhost_ip 172.16.30.1 --instance-ssh-user ansible9 | |
Command used: | |
/usr/local/google/home/jcnarasimhan/DriveFS/My Drive/bmaas/host_provisioning/bms-toolkit/host-provision.sh --dbhost_ip 172.16.30.1 --instance-ssh-user ansible9 | |
Running with parameters from command line or environment variables: | |
INSTANCE_SSH_USER=ansible9 | |
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 SSH 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.10.8, continuing" | |
} | |
TASK [host-provision : user-setup | Create ansible user] *********************************************************************************************************************** | |
ok: [172.16.30.1] | |
TASK [host-provision : user-setup | Slurp public key contents] ***************************************************************************************************************** | |
ok: [172.16.30.1] | |
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] ***************************************************************************************** | |
ok: [172.16.30.1] | |
TASK [host-provision : user-setup | Add sudoers file for ansible] ************************************************************************************************************** | |
ok: [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=0 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