refs #8025 Create awx user
This commit is contained in:
parent
cddc0b4444
commit
fc7a5e6d7d
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
- hosts: all
|
||||
tasks:
|
||||
- name: Configure AWX user
|
||||
import_role:
|
||||
name: awx
|
||||
- name: Configure base system
|
||||
import_role:
|
||||
name: debian-base
|
||||
|
|
|
@ -1 +1 @@
|
|||
awx-user ALL=(ALL) NOPASSWD:ALL
|
||||
awx ALL=(ALL) NOPASSWD:ALL
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue