Compare commits

..

1 Commits

Author SHA1 Message Date
575450f273
Implement configure-webproxy for setting up basic nginx server
Fix init playbook
Add nginx config
Fix networkd install on fedora
Reorg en1 inventory vars
2020-12-07 20:24:57 -05:00
3 changed files with 23 additions and 94 deletions

74
en1.yml
View File

@ -11,8 +11,10 @@ all:
omni_host_webproxy: jupiter omni_host_webproxy: jupiter
children: children:
servers: servers:
children:
virtualization: {}
virtualization:
vars: vars:
omni_local_hosts: omni_local_hosts:
- hostname: jupiter.svr.local - hostname: jupiter.svr.local
@ -25,6 +27,7 @@ all:
jupiter: jupiter:
ansible_host: jupiter.net.enp.one ansible_host: jupiter.net.enp.one
omni_description: EN1 System Control Server omni_description: EN1 System Control Server
omni_docker_swarm_iface: eno2
omni_networking: omni_networking:
eno1: eno1:
dhcp: true dhcp: true
@ -32,57 +35,26 @@ all:
eno2: eno2:
dhcp: false dhcp: false
addresses: ["192.168.42.10/24"] addresses: ["192.168.42.10/24"]
remus:
ansible_host: remus.net.enp.one
omni_description: EN1 Hypervisor/Datastore
omni_networking:
eno1:
dhcp: true
dhcp_address: 10.42.101.20/24
eno2:
dhcp: false
addresses: ["192.168.42.20/24"]
romulus:
ansible_host: romulus.net.enp.one
omni_description: EN1 Hypervisor/Datastore
omni_networking:
eno1:
dhcp: true
dhcp_address: 10.42.101.30/24
eno2:
dhcp: false
addresses: ["192.168.42.30/24"]
children: children:
virtualization: {} worker:
datastore: {}
virtualization:
hosts:
jupiter:
omni_docker_swarm_iface: eno2
children:
virtualization_worker:
hosts: hosts:
remus: remus:
omni_docker_swarm_iface: eno2 ansible_host: remus.net.enp.one
omni_description: EN1 Hypervisor/Datastore
omni_networking:
eno1:
dhcp: true
dhcp_address: 10.42.101.20/24
eno2:
dhcp: false
addresses: ["192.168.42.20/24"]
romulus: romulus:
omni_docker_swarm_iface: eno2 ansible_host: romulus.net.enp.one
omni_description: EN1 Hypervisor/Datastore
datastore: omni_networking:
children: eno1:
datastore_arbiter: dhcp: true
hosts: dhcp_address: 10.42.101.30/24
jupiter: eno2:
omni_gluster_brick: dhcp: false
mount: /mnt/brick0 addresses: ["192.168.42.30/24"]
fs: xfs
datastore_block:
hosts:
remus:
omni_gluster_brick:
mount: /mnt/brick0
fs: xfs
romulus:
omni_gluster_brick:
mount: /mnt/brick0
fs: xfs

View File

@ -1,36 +0,0 @@
---
- name: Install Nginx and CertBot on CentOS 8 and Fedora
when: >-
(ansible_distribution == "CentOS" and ansible_distribution_major_version == "8")
or
ansible_distribution == "Fedora"
become: true
dnf:
state: "{{ _runtime_update_state }}"
name:
- nginx
- certbot
- python3-certbot-nginx
notify:
- restart-nginx
- name: Install Nginx and CertBot on CentOS 7
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
become: true
yum:
state: "{{ _runtime_update_state }}"
name:
- nginx
- certbot
- python-certbot-nginx
notify:
- restart-nginx
#
# - name: Install configuration
# become: true
# copy:
# src: nginx.conf
# dest: /etc/nginx/nginx.conf
# notify:
# - restart_nginx

View File

@ -1,7 +0,0 @@
---
- name: Restart nginx
become: true
systemd:
name: nginx
state: restarted
enabled: true