-
Notifications
You must be signed in to change notification settings - Fork 0
/
os.yml
33 lines (33 loc) · 993 Bytes
/
os.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
- name: OS specific deployment - root phase
hosts: localhost
connection: local
vars_files: host_vars/vault.yml
tasks:
- name: Install os agnostic stuff
ansible.builtin.include_role:
name: os
- name: Install Gentoo related stuff
ansible.builtin.include_role:
name: gentoo
when: ansible_distribution == 'Gentoo'
- name: Install debian related stuff
ansible.builtin.include_role:
name: debian
when: ansible_distribution == 'Debian'
become: true
become_user: root
become_method: ansible.builtin.sudo
- name: OS specific deployment - user
hosts: localhost
connection: local
vars_files: host_vars/vault.yml
tasks:
- name: Install gentoo user stuff
ansible.builtin.include_role:
name: gentoo_user
when: ansible_distribution == 'Gentoo'
- name: Install debian related stuff
ansible.builtin.include_role:
name: debian_user
when: ansible_distribution == 'Debian'