-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubuntu_server.yml
38 lines (34 loc) · 971 Bytes
/
ubuntu_server.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
34
35
36
37
38
---
- hosts: optimal
remote_user: nietaki
vars_prompt:
name: ssh_passphrase
prompt: "Enter ssh/deluged passphrase"
vars_files:
- vars.yml
tasks:
- name: check ubuntu codename
command: "lsb_release -cs"
register: codename_output
- name: save the ubuntu codename for other tasks to use
ansible.builtin.set_fact:
ubuntu_codename: "{{ codename_output.stdout }}"
- name: Include all tasks
include_tasks: "{{ outer_item }}"
loop_control:
loop_var: outer_item
loop:
- tasks/ubuntu-packages.yml
- tasks/security.yml
- tasks/ubuntu-gui-packages.yml
- tasks/neovim-ubuntu.yml
- tasks/ssh.yml
- tasks/zsh.yml
- tasks/fix_ubuntu_zsh_snaps.yml
- tasks/dotfiles_readonly.yml
- tasks/asdf.yml
- tasks/tmux.yml
- tasks/plex_server.yml
- tasks/deluged.yml
# handlers:
# - include: handlers/all.yml