Initial project commit
This commit is contained in:
commit
937e2b3602
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
roles
|
||||||
|
collections
|
26
ansible.cfg
Normal file
26
ansible.cfg
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
[defaults]
|
||||||
|
inventory = hosts
|
||||||
|
roles_path = roles
|
||||||
|
collections_path = collections
|
||||||
|
remote_tmp = /tmp/.ansible-${USER}/tmp
|
||||||
|
gathering = smart
|
||||||
|
gather_timeout = 600
|
||||||
|
fact_caching = jsonfile
|
||||||
|
fact_caching_connection = /tmp/.ansible_facts
|
||||||
|
fact_caching_timeout = 300
|
||||||
|
retry_files_enabled = false
|
||||||
|
forks = 40
|
||||||
|
timeout = 30
|
||||||
|
host_key_checking = false
|
||||||
|
display_skipped_hosts = false
|
||||||
|
deprecation_warnings = false
|
||||||
|
|
||||||
|
# callback_whitelist is deprecated
|
||||||
|
# we only include here for backwards compatibility
|
||||||
|
callback_whitelist = ansible.posix.profile_tasks, ansible.posix.timer
|
||||||
|
callbacks_enabled = ansible.posix.profile_tasks, ansible.posix.timer
|
||||||
|
|
||||||
|
[ssh_connection]
|
||||||
|
pipelining = True
|
||||||
|
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o PreferredAuthentications=publickey
|
||||||
|
|
3
hosts
Normal file
3
hosts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[ipv6]
|
||||||
|
testing ansible_host=10.10.42.72 ansible_user=root
|
||||||
|
|
6
notes.md
Normal file
6
notes.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
upgradeoscheck
|
||||||
|
rear_nfs_export
|
||||||
|
rear_rear_backup
|
||||||
|
pre_upgrade
|
||||||
|
upgradeinplace
|
||||||
|
post_upgrade
|
18
preupgrade.yml
Normal file
18
preupgrade.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
- name: IPv6 Check
|
||||||
|
hosts: ipv6
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Leapp Pre-Upgrade
|
||||||
|
block:
|
||||||
|
- name: Run Leapp pre-upgrade check
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: leapp preupgrade --target 8.10
|
||||||
|
changed_when: false
|
||||||
|
register: leapp_preupgrade
|
||||||
|
|
||||||
|
rescue:
|
||||||
|
- name: Leapp Pre-upgrade failure
|
||||||
|
ansible.builtin.debug:
|
||||||
|
msg: "Leapp pre-upgrade failed: {{ leapp_preupgade }}"
|
18
requirements.yml
Normal file
18
requirements.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
collections:
|
||||||
|
- name: community.general
|
||||||
|
version: 8.4.0
|
||||||
|
|
||||||
|
- name: ansible.posix
|
||||||
|
version: 1.5.4
|
||||||
|
|
||||||
|
- name: rhc.rear
|
||||||
|
source: https://gitea.thezengarden.net/ansible_collections/ansible-collection-rear.git
|
||||||
|
type: git
|
||||||
|
version: main
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- name: verified_reboot
|
||||||
|
src: https://gitea.thezengarden.net/ansible_plays/verified_reboot.git
|
||||||
|
scm: git
|
||||||
|
version: main
|
30
upgradeoscheck.yml
Normal file
30
upgradeoscheck.yml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
- name: IPv6 Check
|
||||||
|
hosts: ipv6
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Check hostname
|
||||||
|
ansible.builtin.debug:
|
||||||
|
var: ansible_hostname
|
||||||
|
|
||||||
|
- name: Check for IPv6 configuration
|
||||||
|
ansible.builtin.shell:
|
||||||
|
cmd: grep -i ipv6 /etc/sysconfig/network-scripts/ifcfg-*
|
||||||
|
failed_when: false
|
||||||
|
changed_when: false
|
||||||
|
register: ipv6_interfaces
|
||||||
|
|
||||||
|
- name: Debug ipv6_interfaces
|
||||||
|
ansible.builtin.debug:
|
||||||
|
var: ipv6_interfaces
|
||||||
|
when:
|
||||||
|
- ipv6_interfaces['stdout_lines'] is defined
|
||||||
|
- ipv6_interfaces['stdout_lines'] | length > 0
|
||||||
|
|
||||||
|
- name: Define IP address for NFS export job
|
||||||
|
ansible.builtin.set_stats:
|
||||||
|
data:
|
||||||
|
ip_addresses: "{{ ansible_all_ipv4_addresses }}"
|
||||||
|
server_hostname: "{{ ansible_hostname }}"
|
||||||
|
aggregate: true
|
Loading…
x
Reference in New Issue
Block a user