Skip to content

Instantly share code, notes, and snippets.

@jcnars
Created August 31, 2021 22:24
Show Gist options
  • Save jcnars/ff9d76574c9db4028a683faf0db6f8b1 to your computer and use it in GitHub Desktop.
Save jcnars/ff9d76574c9db4028a683faf0db6f8b1 to your computer and use it in GitHub Desktop.
✔ ~/050521-mntrl-instlln/bms-toolkit [host-provision ↑·1|✚ 1…19]
15:19 $ ./host-provision.sh --inventory-file inventory_files/inventory_linuxserver44.orcl_orcl --hostprovision-ansible-user ansible8
Command used:
./host-provision.sh --inventory-file inventory_files/inventory_linuxserver44.orcl_orcl --hostprovision-ansible-user ansible8
Running with parameters from command line or environment variables:
INVENTORY_FILE=inventory_files/inventory_linuxserver44.orcl_orcl
ORA_HOSTPROVISION_ANSIBLE_USER=ansible8
Found Ansible at /usr/bin/ansible-playbook
Running Ansible playbook: /usr/bin/ansible-playbook -i inventory_files/inventory_linuxserver44.orcl_orcl 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 pvt public key pair locally in control node] ****************************************************************************************
changed: [localhost]
Enter customeradmin password:
PLAY [Create user and transfer public key to set up ssh equivalence] ***********************************************************************************************************
TASK [Gathering Facts] *********************************************************************************************************************************************************
ok: [linuxserver44.orcl]
TASK [Verify that Ansible on control node meets the version requirements] ******************************************************************************************************
ok: [linuxserver44.orcl] => {
"changed": false,
"msg": "Ansible version is 2.9.25, continuing"
}
TASK [host-provision : user-setup | Create ansible user] ***********************************************************************************************************************
changed: [linuxserver44.orcl]
TASK [host-provision : user-setup | Transfer public key from control node to DB hosts] *****************************************************************************************
changed: [linuxserver44.orcl]
TASK [host-provision : user-setup | Add sudoers file for ansible] **************************************************************************************************************
changed: [linuxserver44.orcl]
PLAY [Validate ssh equivalence (passwordless connection) and sudo escalation for new user] *************************************************************************************
TASK [Gathering Facts] *********************************************************************************************************************************************************
ok: [linuxserver44.orcl]
TASK [ping] ********************************************************************************************************************************************************************
ok: [linuxserver44.orcl]
PLAY RECAP *********************************************************************************************************************************************************************
linuxserver44.orcl : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
localhost : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
✔ ~/050521-mntrl-instlln/bms-toolkit [host-provision ↑·1|✚ 1…19]
15:22 $ cat inventory_files/inventory_linuxserver44.orcl_orcl
[dbasm]
linuxserver44.orcl ansible_ssh_host=172.16.30.1 ansible_ssh_extra_args='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentityAgent=no'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment