SatelliteQE / ansible-satellite6

Ansible playbooks for Satellite 6 systems' management
GNU General Public License v3.0
4 stars 10 forks source link

Initial commit for Ansible based Satellite6 Install and Configure. #4

Closed kbidarkar closed 6 years ago

kbidarkar commented 6 years ago
kbidarkar commented 6 years ago

[First run for the host: sat64-rhel7] Below are the results for the partition-disk role while using the sat64 playbook.

 git_world  ansible-satellite6  ansible-playbook -i inventory playbooks/install/satellite_64.yml

PLAY [sat64] *****************************************************************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] *******************************************************************************************************************************************************************************************************************************************************************
ok: [sat64-rhel7]

TASK [partition-disk : include_tasks] ****************************************************************************************************************************************************************************************************************************************************
included: /home/kbidarka/git_world/ansible-satellite6/roles/partition-disk/tasks/remove_home_partition.yaml for sat64-rhel7

TASK [partition-disk : Unmount /home partition] ******************************************************************************************************************************************************************************************************************************************
changed: [sat64-rhel7]

TASK [partition-disk : Remove /home entry from /etc/fstab] *******************************************************************************************************************************************************************************************************************************
changed: [sat64-rhel7]

TASK [partition-disk : Remove /home Logical Volume] **************************************************************************************************************************************************************************************************************************************
changed: [sat64-rhel7] => (item={'key': 'home', 'value': {'size_g': '406.88', 'vg': 'rhel_cloud-qe-22'}})
skipping: [sat64-rhel7] => (item={'key': 'root', 'value': {'size_g': '50.00', 'vg': 'rhel_cloud-qe-22'}}) 
skipping: [sat64-rhel7] => (item={'key': 'swap', 'value': {'size_g': '7.88', 'vg': 'rhel_cloud-qe-22'}}) 

TASK [partition-disk : include_tasks] ****************************************************************************************************************************************************************************************************************************************************
included: /home/kbidarka/git_world/ansible-satellite6/roles/partition-disk/tasks/extend_root_partition.yaml for sat64-rhel7

TASK [partition-disk : Extend root partition LV to all available VG space] ***************************************************************************************************************************************************************************************************************
skipping: [sat64-rhel7] => (item={'key': 'home', 'value': {'size_g': '406.88', 'vg': 'rhel_cloud-qe-22'}}) 
changed: [sat64-rhel7] => (item={'key': 'root', 'value': {'size_g': '50.00', 'vg': 'rhel_cloud-qe-22'}})
skipping: [sat64-rhel7] => (item={'key': 'swap', 'value': {'size_g': '7.88', 'vg': 'rhel_cloud-qe-22'}}) 

TASK [partition-disk : Resize the root filesystem] ***************************************************************************************************************************************************************************************************************************************
skipping: [sat64-rhel7] => (item={'key': 'home', 'value': {'size_g': '406.88', 'vg': 'rhel_cloud-qe-22'}}) 
changed: [sat64-rhel7] => (item={'key': 'root', 'value': {'size_g': '50.00', 'vg': 'rhel_cloud-qe-22'}})
skipping: [sat64-rhel7] => (item={'key': 'swap', 'value': {'size_g': '7.88', 'vg': 'rhel_cloud-qe-22'}}) 

PLAY RECAP *******************************************************************************************************************************************************************************************************************************************************************************
sat64-rhel7                : ok=8    changed=5    unreachable=0    failed=0   

[Re-run for the host sat63-rhel7]Also, tried re-running the partition-disk role using sat63 playbook.

 git_world  ansible-satellite6  ansible-playbook -i inventory playbooks/install/satellite_63.yml

PLAY [sat63] *****************************************************************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] *******************************************************************************************************************************************************************************************************************************************************************
ok: [sat63-rhel7]

TASK [partition-disk : include_tasks] ****************************************************************************************************************************************************************************************************************************************************
included: /home/kbidarka/git_world/ansible-satellite6/roles/partition-disk/tasks/remove_home_partition.yaml for sat63-rhel7

TASK [partition-disk : Unmount /home partition] ******************************************************************************************************************************************************************************************************************************************
ok: [sat63-rhel7]

TASK [partition-disk : Remove /home entry from /etc/fstab] *******************************************************************************************************************************************************************************************************************************
ok: [sat63-rhel7]

TASK [partition-disk : Remove /home Logical Volume] **************************************************************************************************************************************************************************************************************************************
skipping: [sat63-rhel7] => (item={'key': 'root', 'value': {'size_g': '262.68', 'vg': 'rhel_hp-dl380-gen9-5'}}) 
skipping: [sat63-rhel7] => (item={'key': 'swap', 'value': {'size_g': '15.69', 'vg': 'rhel_hp-dl380-gen9-5'}}) 

TASK [partition-disk : include_tasks] ****************************************************************************************************************************************************************************************************************************************************
included: /home/kbidarka/git_world/ansible-satellite6/roles/partition-disk/tasks/extend_root_partition.yaml for sat63-rhel7

TASK [partition-disk : Extend root partition LV to all available VG space] ***************************************************************************************************************************************************************************************************************
ok: [sat63-rhel7] => (item={'key': 'root', 'value': {'size_g': '262.68', 'vg': 'rhel_hp-dl380-gen9-5'}})
skipping: [sat63-rhel7] => (item={'key': 'swap', 'value': {'size_g': '15.69', 'vg': 'rhel_hp-dl380-gen9-5'}}) 

TASK [partition-disk : Resize the root filesystem] ***************************************************************************************************************************************************************************************************************************************
ok: [sat63-rhel7] => (item={'key': 'root', 'value': {'size_g': '262.68', 'vg': 'rhel_hp-dl380-gen9-5'}})
skipping: [sat63-rhel7] => (item={'key': 'swap', 'value': {'size_g': '15.69', 'vg': 'rhel_hp-dl380-gen9-5'}}) 

PLAY RECAP *******************************************************************************************************************************************************************************************************************************************************************************
sat63-rhel7                : ok=7    changed=0    unreachable=0    failed=0   

Feel, it is better to also test re-run, just to avoid any issues while re-running the playbook on the same host.

omaciel commented 6 years ago

Was talking to @kbidarkar on IRC about the need to make sure that the underlying version of RHEL does not affect the outcome of this task. Like setting up the firewall rules on RHEL 6 x RHEL 7 :)

kbidarkar commented 6 years ago

@omaciel, ok, filed an issue, here #5

Wanted to just get started with a role and dir_structure.

Just focused on RHEL7 OS in this PR, to begin with, the ansible-satellite6 repository.

kbidarkar commented 6 years ago

Guys, nothing is fixed in stone, this initial commit is to get started, we can evolve the project depending upon the needs moving forward. I read stuff around ansible, looked at various ansible projects and pulled in what appeared good, also will be sending out the best practices I have found around this.