This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
ansible:ansible_for_aix [2024/07/02 14:26] manu |
ansible:ansible_for_aix [2024/10/10 14:28] (current) manu |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| https://galaxy.ansible.com/ui/repo/published/ibm/power_aix/ | https://galaxy.ansible.com/ui/repo/published/ibm/power_aix/ | ||
| - | https://www.ansible.com/blog/aix-patch-management-with-ansible | + | https://galaxy.ansible.com/ui/repo/published/ibm/power_vios/ |
| - | https://galaxy.ansible.com/search?deprecated=false&keywords=aix&order_by=-relevance&page=1 | + | https://galaxy.ansible.com/ui/repo/published/ibm/power_hmc/ |
| + | |||
| + | https://galaxy.ansible.com/ui/repo/published/brocade/fos/ | ||
| + | |||
| + | https://galaxy.ansible.com/ui/repo/published/ibm/storage_virtualize/ | ||
| + | |||
| + | https://www.ansible.com/blog/aix-patch-management-with-ansible | ||
| https://github.com/aixoss/ansible-playbooks | https://github.com/aixoss/ansible-playbooks | ||
| Line 14: | Line 20: | ||
| https://github.com/lg4U (PowerVC) | https://github.com/lg4U (PowerVC) | ||
| + | |||
| + | If server is installed on AIX, then install prerequisites AIX packages: | ||
| + | * bos.loc.com.utf | ||
| + | * bos.loc.utf.EN_US | ||
| + | And set LANG: export LANG=en_US.UTF-8 | ||
| + | |||
| $ ansible-galaxy collection install ibm.power_aix | $ ansible-galaxy collection install ibm.power_aix | ||
| Line 537: | Line 549: | ||
| </cli> | </cli> | ||
| - | ==== Examples ==== | + | ===== Examples ===== |
| - | === Upgrade AIX NIM === | + | ==== Upgrade AIX NIM ==== |
| <cli prompt='#'> | <cli prompt='#'> | ||
| Line 571: | Line 583: | ||
| </cli> | </cli> | ||
| - | === mksysb AIX NIM === | + | ==== mksysb AIX NIM ==== |
| <cli prompt='#'> | <cli prompt='#'> | ||
| Line 603: | Line 615: | ||
| </cli> | </cli> | ||
| - | === AIX NIMadm alternate disk migration === | + | ==== AIX NIMadm alternate disk migration ==== |
| Below is an example of how to invoke the options. I'd added the "default('N/A')" to avoid errors if the variable was not defined, as the role is coded for "N/A", but should also work with "default(omit)" | Below is an example of how to invoke the options. I'd added the "default('N/A')" to avoid errors if the variable was not defined, as the role is coded for "N/A", but should also work with "default(omit)" | ||
| Line 641: | Line 653: | ||
| Here’s the playbook I used, called **nimadm.yml**: | Here’s the playbook I used, called **nimadm.yml**: | ||
| + | <cli> | ||
| + | --- | ||
| + | - name: NIMADM playbook | ||
| + | hosts: aixmig | ||
| + | gather_facts: no | ||
| + | collections: | ||
| + | ibm.power_aix | ||
| + | tasks: | ||
| + | - include_role: | ||
| + | name: nim_alt_disk_migration | ||
| + | apply: | ||
| + | delegate_to: lpar1 | ||
| + | vars: | ||
| + | nimadm_cache_vg: nimadmvg | ||
| + | nim_client: aixmig | ||
| + | target_disk: | ||
| + | disk_name: hdisk0 | ||
| + | lpp_source: AIX73TL1SP1 | ||
| + | spot: spotAIX73TL1SP1 | ||
| + | register: nimadm_results | ||
| + | - name: "Debug: nimadm_results" | ||
| + | ansible.builtin.debug: var=nimadm_results | ||
| + | </cli> | ||