-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaybook.yml
More file actions
80 lines (68 loc) · 2.27 KB
/
Copy pathplaybook.yml
File metadata and controls
80 lines (68 loc) · 2.27 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
- name: Initialize WSL Environment
hosts: localhost
gather_facts: true
vars:
dev_username: "{{ user }}"
admin_group: "{{ group }}"
tasks:
- name: Create Main User Role
ansible.builtin.include_role:
name: create_main_user
vars:
create_main_user_v_admin_group: "{{ admin_group }}"
create_main_user_v_username: "{{ dev_username }}"
- name: Create Initial Ansible Directory
ansible.builtin.file:
path: /ansible
state: directory
mode: '0755'
owner: "{{ dev_username }}"
group: "{{ admin_group }}"
- name: Add Fix Script
ansible.builtin.include_role:
name: add_fix_script
vars:
add_fix_script_v_username: "{{ dev_username }}"
- name: Setup WSL Network Settings
ansible.builtin.include_role:
name: wsl_network_setup
vars:
wsl_network_setup_v_username: "{{ dev_username }}"
- name: Install Certificates
ansible.builtin.include_role:
name: load_certificates
- name: Install podman for Ubuntu
ansible.builtin.include_role:
name: install_podman_for_ubuntu
vars:
install_podman_for_ubuntu_v_os_version: "{{ hostvars[inventory_hostname].ansible_distribution_version }}"
- name: Install python pipx
ansible.builtin.apt:
pkg:
- pipx
- name: Install Ansible Development Tools
ansible.builtin.include_role:
name: install_ansible_dev_tools
vars:
install_ansible_dev_tools_v_username: "{{ dev_username }}"
# - name: Install Ansible Navigator
# ansible.builtin.include_role:
# name: install_ansible_navigator
# vars:
# v_install_ansible_navigator_username: "{{ dev_username }}"
# - name: Install ansible python package (already done since running it)
# pip:
# name: ansible
# - name: Install ansible-lint python package
# pip:
# name: ansible-lint
# - name: Install ansible-builder python package
# pip:
# name: ansible-builder
- name: Setup VS Code Settings
ansible.builtin.include_role:
name: vs_code_setup
vars:
vs_code_setup_v_username: "{{ dev_username }}"
vs_code_setup_v_admin_group: "{{ admin_group }}"