8025-awxRefactor-debianBootStrap #30

Merged
juan merged 37 commits from 8025-awxRefactor-debianBootStrap into main 2024-10-16 14:49:33 +00:00
7 changed files with 19 additions and 15 deletions
Showing only changes of commit 757d3dfe29 - Show all commits

1
.gitignore vendored
View File

@ -2,5 +2,6 @@
.vault-pass
.vault.yml
.passbolt.yml
inventories/local
xavi marked this conversation as resolved
Review

Esta linea está repetida

Esta linea está repetida
venv
context/_build

View File

@ -11,7 +11,6 @@ main_dns_server: ns1.verdnatura.es
ldap_uri: ldap://ldap.verdnatura.es
ldap_base: dc=verdnatura,dc=es
dc_net: "10.0.0.0/16"
resolv_domain: verdnatura.es
resolvers:
- '10.0.0.4'
- '10.0.0.5'

View File

@ -1,4 +1,4 @@
- name: restart-sysctl
service:
systemd:
name: systemd-sysctl
state: restarted
state: restarted

View File

@ -1,5 +1,12 @@
- name: Disable AppArmor
service:
- name: Stop AppArmor
systemd:
name: apparmor
state: stopped
- name: Disable AppArmor service
systemd:
name: apparmor
enabled: no
- name: Mask AppArmor service
systemd:
name: apparmor
masked: yes

View File

@ -2,11 +2,8 @@
hostname:
name: "{{ inventory_hostname_short }}"
use: debian
- name: Configure hosts file
blockinfile:
- name: Populating hosts file with hostname
lineinfile:
path: /etc/hosts
marker_begin: '--- BEGIN VN ---'
marker_end: '--- END VN ---'
marker: "# {mark}"
block: |
{{ ansible_default_ipv4.address }} {{ ansible_host }} {{ inventory_hostname_short }}
regexp: '^127.0.1.1'
line: '127.0.1.1 {{ ansible_host }} {{ inventory_hostname_short }}'

View File

@ -1,4 +1,4 @@
- name: Set systctl configuration
- name: Set systctl custom vn configuration
copy:
src: sysctl/
dest: /etc/sysctl.d/

View File

@ -1,5 +1,5 @@
domain {{ resolv_domain }}
search {{ resolv_domain }}
domain {{ host_domain }}
search {{ host_domain }}
{% if resolvers is defined %}
{% for resolver in resolvers %}
nameserver {{resolver}}