|
|
@ -4,15 +4,21 @@
|
|
|
|
vars:
|
|
|
|
vars:
|
|
|
|
uid: "{{ lookup('env','USER') }}"
|
|
|
|
uid: "{{ lookup('env','USER') }}"
|
|
|
|
gitops: git+ssh://git@gitops.sunet.se
|
|
|
|
gitops: git+ssh://git@gitops.sunet.se
|
|
|
|
|
|
|
|
github: git+ssh://git@github.com/SUNET
|
|
|
|
|
|
|
|
platform: git+ssh://git@platform.sunet.se:22022/Drive
|
|
|
|
opsrepos:
|
|
|
|
opsrepos:
|
|
|
|
- sunet-drive-ops
|
|
|
|
- sunet-drive-ops
|
|
|
|
- mail-ops
|
|
|
|
- mail-ops
|
|
|
|
- platform-ops
|
|
|
|
- platform-ops
|
|
|
|
|
|
|
|
puppetrepos:
|
|
|
|
|
|
|
|
- puppet-sunet
|
|
|
|
|
|
|
|
platformrepos:
|
|
|
|
|
|
|
|
- sunetdrive
|
|
|
|
|
|
|
|
|
|
|
|
connection: local
|
|
|
|
connection: local
|
|
|
|
become: false
|
|
|
|
become: false
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
- name: Create sunet folders
|
|
|
|
- name: Create sunet folders
|
|
|
|
become: true
|
|
|
|
|
|
|
|
ansible.builtin.file:
|
|
|
|
ansible.builtin.file:
|
|
|
|
dest: /home/{{ uid }}/sunet/{{ item }}
|
|
|
|
dest: /home/{{ uid }}/sunet/{{ item }}
|
|
|
|
state: directory
|
|
|
|
state: directory
|
|
|
@ -22,7 +28,19 @@
|
|
|
|
- puppet
|
|
|
|
- puppet
|
|
|
|
- name: Get gitops ops-repos
|
|
|
|
- name: Get gitops ops-repos
|
|
|
|
ansible.builtin.command:
|
|
|
|
ansible.builtin.command:
|
|
|
|
chdir: /home/{{ uid }}/sources/
|
|
|
|
chdir: /home/{{ uid }}/sunet/ops
|
|
|
|
cmd: git clone {{ gitops }}/{{ item }}
|
|
|
|
cmd: git clone {{ gitops }}/{{ item }}
|
|
|
|
creates: /home/{{ uid }}/sunet/ops/{{ item }}
|
|
|
|
creates: /home/{{ uid }}/sunet/ops/{{ item }}
|
|
|
|
loop: "{{ opsrepos }}"
|
|
|
|
loop: "{{ opsrepos }}"
|
|
|
|
|
|
|
|
- name: Get github puppet-repos
|
|
|
|
|
|
|
|
ansible.builtin.command:
|
|
|
|
|
|
|
|
chdir: /home/{{ uid }}/sunet/puppet
|
|
|
|
|
|
|
|
cmd: git clone {{ github }}/{{ item }}
|
|
|
|
|
|
|
|
creates: /home/{{ uid }}/sunet/puppet/{{ item }}
|
|
|
|
|
|
|
|
loop: "{{ puppetrepos }}"
|
|
|
|
|
|
|
|
- name: Get platform puppet-repos
|
|
|
|
|
|
|
|
ansible.builtin.command:
|
|
|
|
|
|
|
|
chdir: /home/{{ uid }}/sunet/puppet
|
|
|
|
|
|
|
|
cmd: git clone {{ platform }}/{{ item }}
|
|
|
|
|
|
|
|
creates: /home/{{ uid }}/sunet/puppet/{{ item }}
|
|
|
|
|
|
|
|
loop: "{{ platformrepos }}"
|
|
|
|