main #31

Merged
juan merged 154 commits from main into lab 2024-10-16 15:22:43 +00:00
5 changed files with 7 additions and 15 deletions
Showing only changes of commit fc7a5e6d7d - Show all commits

View File

@ -3,7 +3,7 @@ roles_path = ./roles
inventory = ./inventories/production
gathering = smart
interpreter_python = auto_silent
remote_user = awx-user
remote_user = awx
host_key_checking = False
[privilege_escalation]

View File

@ -9,14 +9,9 @@ resolvers:
- '10.0.0.5'
awx_email: awx@verdnatura.es
awx_pub_key: >
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDjeIZVyppFK/dqOUa1PxgSeRVWk7MFmANYvSs+VHHn
D4/BE//K8AxlxnyLl4e6jAcBFoIu1JLxbRKdOhx+Zgkq5OmEzp/XKzfEvnEU5CP+W2+5MwfkUQ3TetJs
OoHiP/qYWPqqqfDFqNM1xs9am5Frv9BVu5pFiSO9oS14xVAlUOwnONQnRtAbuBOmMldpzxmuFY+Rs3G2
MmokcOYrs5Z3TdCOG9bDGg8erzWklLW+aRYdXqMEZpwIZPcOFy6JXEyZ/9IpCLBN58IMr0RypFbgWb2V
o05iTI5j99Pzn//FgAhe6BXRyHSGOJ29hmKugt9sIY1N/H6aYqtTVR5EEIngY1XHtFywU1+qtYHMs8PB
9Hl87zUkla0+S5Zn8q92y7DQFsOZ9ND6syEzWhiCP1ic3Wo76TVbuNoTW/XvgZnemx1epuOqDj9S7iGT
SHMvvSop8z5hU2EQiVkgRPl4cM2fi0vF513ivq5IbCgg2VfXUOLM5E5y0TI7lzBriTtCuIk=
awx@awx.verdnatura.es
ssh-ed25519
AAAAC3NzaC1lZDI1NTE5AAAAIKzAwWm+IsqZCgMzjdZ7Do3xWtVtoUCpWJpH7KSi2a/H
awx@verdnatura.es
nslcd_password: !vault >
$ANSIBLE_VAULT;1.1;AES256
30343461633538323832316231383362626636653864353535346461353937313131336135396162

View File

@ -1,8 +1,5 @@
- hosts: all
tasks:
- name: Configure AWX user
import_role:
name: awx
- name: Configure base system
import_role:
name: debian-base

View File

@ -1 +1 @@
awx-user ALL=(ALL) NOPASSWD:ALL
awx ALL=(ALL) NOPASSWD:ALL

View File

@ -1,6 +1,6 @@
- name: Create AWX user
user:
name: awx-user
name: awx
password: '*'
shell: /bin/bash
groups: sudo
@ -8,7 +8,7 @@
comment: ssh user
- name: Adding SSH public key
authorized_key:
user: awx-user
user: awx
key: "{{ awx_pub_key }}"
- name: Install sudo package
apt: