x
This commit is contained in:
+27
-24
@@ -128,7 +128,9 @@
|
||||
ansible.posix.authorized_key:
|
||||
user: root
|
||||
state: present
|
||||
key: "{{ lookup('file', 'files/ssh-keys/heath.pub') }}"
|
||||
key: "{{ lookup('file', item) }}"
|
||||
loop:
|
||||
- files/ssh-keys/heath.pub
|
||||
|
||||
|
||||
#### User: first
|
||||
@@ -186,7 +188,6 @@
|
||||
state: present
|
||||
key: "{{ lookup('file', item) }}"
|
||||
loop:
|
||||
- files/ssh-keys/hpf-ans.pub
|
||||
- files/ssh-keys/heath.pub
|
||||
|
||||
- name: Make sure pip is up to date
|
||||
@@ -205,27 +206,6 @@
|
||||
virtualenv: $HOME/.ansible-venv
|
||||
extra_args: --upgrade
|
||||
|
||||
- name: Make sure /home/hpf-ans/bin exists
|
||||
become: true
|
||||
become_user: hpf-ans
|
||||
ansible.builtin.file:
|
||||
path: $HOME/bin
|
||||
state: directory
|
||||
owner: hpf-ans
|
||||
group: hpf-ans
|
||||
mode: u=rwx,go=
|
||||
|
||||
- name: Get /home/hpf-ans/bin/ansible-pull.sh
|
||||
become: true
|
||||
become_user: hpf-ans
|
||||
ansible.builtin.copy:
|
||||
src: home/hpf-ans/bin/ansible-pull.sh
|
||||
dest: $HOME/bin/ansible-pull.sh
|
||||
owner: hpf-ans
|
||||
group: hpf-ans
|
||||
mode: u=rwx,go=
|
||||
backup: true
|
||||
|
||||
|
||||
#### User: heath
|
||||
|
||||
@@ -256,11 +236,34 @@
|
||||
ansible.posix.authorized_key:
|
||||
user: heath
|
||||
state: present
|
||||
key: "{{ lookup('file', 'files/ssh-keys/heath.pub') }}"
|
||||
key: "{{ lookup('file', item) }}"
|
||||
loop:
|
||||
- files/ssh-keys/heath.pub
|
||||
|
||||
|
||||
#### ansible-pull.sh
|
||||
|
||||
- name: Make sure /home/hpf-ans/bin exists
|
||||
become: true
|
||||
become_user: hpf-ans
|
||||
ansible.builtin.file:
|
||||
path: $HOME/bin
|
||||
state: directory
|
||||
owner: hpf-ans
|
||||
group: hpf-ans
|
||||
mode: u=rwx,go=
|
||||
|
||||
- name: Get /home/hpf-ans/bin/ansible-pull.sh
|
||||
become: true
|
||||
become_user: hpf-ans
|
||||
ansible.builtin.copy:
|
||||
src: home/hpf-ans/bin/ansible-pull.sh
|
||||
dest: $HOME/bin/ansible-pull.sh
|
||||
owner: hpf-ans
|
||||
group: hpf-ans
|
||||
mode: u=rwx,go=
|
||||
backup: true
|
||||
|
||||
- name: Make sure log directory exists
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
|
||||
Reference in New Issue
Block a user