Added playbook to prestage NCA Automation users and add them to sudo
This commit is contained in:
parent
2a3edc6a62
commit
b800822ffa
@ -15,4 +15,6 @@ all:
|
||||
10.221.0.130:
|
||||
10.221.0.131:
|
||||
10.221.0.132:
|
||||
|
||||
staging:
|
||||
hosts:
|
||||
10.221.0.105:
|
||||
|
||||
20
dnaclab_linux/prestage_users.yaml
Normal file
20
dnaclab_linux/prestage_users.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: Prestage server(s) with the NCA Automation team users
|
||||
hosts: staging
|
||||
roles:
|
||||
- ncafsa-users
|
||||
become: yes
|
||||
vars_files:
|
||||
- global_vars/main.yml
|
||||
|
||||
tasks:
|
||||
|
||||
- name: Configure NCA Automation team users for server access
|
||||
ansible.builtin.user:
|
||||
name: "{{ item.key }}"
|
||||
comment: "Added via Ansible"
|
||||
home: "/home/{{ item.key }}"
|
||||
shell: "/bin/bash"
|
||||
group: "sudo"
|
||||
password: "{{ item.value }}"
|
||||
loop: "{{ lookup('dict', users) }}"
|
||||
26
dnaclab_linux/roles/ncafsa-users/vars/main.yaml
Normal file
26
dnaclab_linux/roles/ncafsa-users/vars/main.yaml
Normal file
@ -0,0 +1,26 @@
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
65353865383039623866306630313066383461306138363337646430313438396163333765396265
|
||||
3030323335386430356464636339306236633337333239640a373365653761363036396338376233
|
||||
64666237613836303535623432393661613131393936643161636232656562386266656236646435
|
||||
3938653837636436340a366537346265626539373333653635373737666261623664363332363937
|
||||
61653033656333613963623161313339383134333261363032633563323865633338663864353561
|
||||
66643535303764396561386133343638306464303334306635613263633436616433346464396235
|
||||
63336365636336666661316664373866643162333235353363383835376665373766343434303361
|
||||
61373965376663323466323135646263653937396362636564323263616530313635656330363963
|
||||
37613436303864653530653935616338396439616637383537366430363238653838633936653239
|
||||
30383730383533353262353264383963333234663834383031326132393766626538303338316139
|
||||
37323633623636353932356437643366666461343532666165333531616361346637333431313536
|
||||
30363438656366396130303639323166643433356436386266353164326636633430343239336634
|
||||
36386464376535376236336532323265343936366536663931336635356238336330363066666631
|
||||
66613763333761323937356263363831653566323133336331306337633337326332636531366439
|
||||
61343132333165396532313131633333376139326262623963356531393138336666353631643332
|
||||
31383962363135313734323965313535623030633130636337356561333435656439643565356239
|
||||
65663964613331376431626263613035656532343865386638393031326138386537353639663230
|
||||
39636638343737356131636266366339363633643634326366326336316232333233323339353435
|
||||
33643132336361393666353134363962653138323038323535353534623535353930336663393938
|
||||
33313439643930316663373733646462613031356262346130356137633139626137313534366361
|
||||
64653330383035643565353337626136623238326232613439393866356534393530376232356638
|
||||
64346337326161356334303832343761656165353366653733386636656365333832306538626662
|
||||
63313961613636373432326632333763356535386564313462383632313463313835353065383239
|
||||
64333066643364623834393036376666663362373265323961373965326637376638363538343231
|
||||
6662
|
||||
3
ios_devices/.vscode/settings.json
vendored
Normal file
3
ios_devices/.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"ansible.python.interpreterPath": "/bin/python3"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user