-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.yml
36 lines (32 loc) · 879 Bytes
/
setup.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
---
- hosts: localhost
connection: local
tasks:
- name: Install galaxy requirements
become: yes
command: ansible-galaxy install -r /vagrant/requirements.yml
- name: Add apt repositories
become: yes
apt_repository:
repo: "{{ item }}"
state: "present"
with_items: "{{ apt_repositories }}"
- name: Install required software (apt)
become: yes
apt:
name: "{{ item }}"
state: "latest"
update_cache: yes
with_items: "{{ required_software_apt }}"
ignore_errors: yes
- name: Upgrade
become: yes
apt:
update_cache: yes
upgrade: "yes"
- name: Install required software (pip)
become: yes
pip:
name: "{{ item }}"
state: "present"
with_items: "{{ required_software_pip }}"