parent
70848b23d4
commit
b42cc68ef8
@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
- name: Set up various work related stuff
|
||||||
|
hosts: localhost
|
||||||
|
vars:
|
||||||
|
uid: "{{ lookup('env','USER') }}"
|
||||||
|
gitops: git+ssh://git@gitops.sunet.se
|
||||||
|
opsrepos:
|
||||||
|
- sunet-drive-ops
|
||||||
|
- mail-ops
|
||||||
|
- platform-ops
|
||||||
|
connection: local
|
||||||
|
become: false
|
||||||
|
tasks:
|
||||||
|
- name: Create sunet folders
|
||||||
|
become: true
|
||||||
|
ansible.builtin.file:
|
||||||
|
dest: /home/{{ uid }}/sunet/{{ item }}
|
||||||
|
state: directory
|
||||||
|
loop:
|
||||||
|
- docker
|
||||||
|
- ops
|
||||||
|
- puppet
|
||||||
|
- name: Get gitops ops-repos
|
||||||
|
ansible.builtin.command:
|
||||||
|
chdir: /home/{{ uid }}/sources/
|
||||||
|
cmd: git clone {{ gitops }}/{{ item }}
|
||||||
|
creates: /home/{{ uid }}/sunet/ops/{{ item }}
|
||||||
|
loop: "{{ opsrepos }}"
|
Loading…
Reference in new issue