Skip to content

Commit 80193d2

Browse files
ansible playbooks
1 parent 15eb207 commit 80193d2

39 files changed

+899
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tar
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
version: 1
3+
4+
build_arg_defaults:
5+
ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: '-c'
6+
EE_BASE_IMAGE: 'registry.redhat.io/ansible-automation-platform-24/ee-minimal-rhel9'
7+
8+
9+
ansible_config: '/etc/ansible/ansible.cfg'
10+
11+
dependencies:
12+
galaxy: requirements.yaml
13+
python: requirements.txt
14+
system: bindep.txt
15+
16+
additional_build_steps:
17+
prepend: |
18+
RUN rm -rf /etc/rhsm-host
19+
RUN rm -rf /etc/pki/entitlement-host
20+
RUN rm -f /etc/yum.repos.d/redhat.repo
21+
RUN microdnf clean all

create_and_config_vm_ansible_playbooks/ee/ee-default-rhel9/requirements.txt

Whitespace-only changes.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
collections:
3+
- name: ansible.controller
4+
- name: ansible.posix
5+
- name: community.general
6+
- name: nutanix.ncp
7+
- name: redhat.rhel_system_roles
8+
- name: redhat.satellite
9+
- name: vmware.vmware_rest
10+
- name: ansible.netcommon
11+
- name: ansible.network
12+
- name: ansible.utils
13+
- name: arista.eos
14+
- name: awx.awx
15+
- name: cisco.ios
16+
- name: cisco.iosxr
17+
- name: cisco.nxos
18+
- name: frr.frr
19+
- name: junipernetworks.junos
20+
- name: openvswitch.openvswitch
21+
- name: theforeman.foreman
22+
- name: vyos.vyos
23+
- name: kubernetes.core
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
- name: "### PB: Deploy Host ###"
3+
hosts: "{{ esx_host_fqdn }}"
4+
5+
roles:
6+
- role: ../roles/deploy-host
7+
8+
post_tasks:
9+
- debug:
10+
var: ip_address_2
11+
12+
13+
tasks:
14+
- name: save ip temp to disk on ESX
15+
ansible.builtin.shell: echo '{{ ip_address_2 }}' > /tmp/file_one
16+
17+
- name: Running on the Ansible server
18+
hosts: localhost
19+
gather_facts: true
20+
become: true
21+
22+
tasks:
23+
- name: Test create local file
24+
ansible.builtin.shell: echo "Hello" > /tmp/hello.txt
25+
- name: scp file from esx
26+
ansible.builtin.shell: sftp -r -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "{{ esx_host_fqdn }}":/tmp/file_one /tmp/
27+
async: 60
28+
poll: 1
29+
30+
31+
32+
33+
34+
35+
36+
37+
38+
39+
40+
41+
42+
43+
44+
45+
46+
47+
48+
49+
50+
51+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
- name: " ### PLAYBOOK: DNF Update System ### "
3+
hosts: "{{ vm_name_fqdn }}"
4+
gather_facts: false
5+
become: true
6+
7+
roles:
8+
- role: ../roles/dnf_update_system
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
- name: "### PB: glpi create asste###"
3+
hosts: localhost
4+
gather_facts: true
5+
become: true
6+
7+
roles:
8+
- role: ../roles/glpi_create_asset
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
- name: "### PB: Foreman Repo Sync###"
3+
hosts: "{{ vm_name_fqdn }}"
4+
gather_facts: true
5+
become: true
6+
7+
vars:
8+
network:
9+
username: '{{ lookup("env", "ANSIBLE_NET_USERNAME") }}'
10+
password: '{{ lookup("env", "ANSIBLE_NET_PASSWORD") }}'
11+
12+
roles:
13+
- role: ../roles/icinga_config
14+
15+
- hosts: icinga
16+
gather_facts: true
17+
become: true
18+
19+
tasks:
20+
21+
- name: "per api hinzufuegen"
22+
ansible.builtin.include_tasks:
23+
file: ../roles/icinga_config/tasks/tsk-icinga_api_server_config.yaml
24+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
- name: "### PB: Join AD###"
3+
hosts: "{{ vm_name_fqdn }}"
4+
gather_facts: false
5+
become: true
6+
7+
roles:
8+
- role: ../roles/join_ad_domain
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
- name: "### PB: openSCAP Host ###"
3+
hosts: "{{ vm_name_fqdn }}"
4+
gather_facts: true
5+
become: true
6+
7+
roles:
8+
- role: ../roles/openscap
9+
10+

0 commit comments

Comments
 (0)