-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.yml
39 lines (33 loc) · 822 Bytes
/
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
- hosts: localhost
vars:
source_key: "{{ lookup('env', 'HOME') }}/ansible/.ssh/id_ed25519"
dest_key: "{{ lookup('env', 'HOME') }}/.ssh/id_ed25519"
private_playbooks: "[email protected]:victorkamoto/ansible-private.git"
environ: "server"
pre_tasks:
- name: Update APT
become: true
apt:
force_apt_get: true
update_cache: true
state: present
when: ansible_distribution == "Ubuntu"
tags:
- install
- core
- name: Update Pacman package cache
become: true
pacman:
update_cache: true
when: ansible_distribution == "Archlinux"
tags:
- install
- core
tasks:
- name: include_tasks
include_tasks:
file: "{{ item }}"
loop:
- tasks/ssh.yml
- tasks/git.yml
- tasks/private-tasks.yml