-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmolecule-setup.yml
More file actions
37 lines (32 loc) · 960 Bytes
/
Copy pathmolecule-setup.yml
File metadata and controls
37 lines (32 loc) · 960 Bytes
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
---
- name: Instala o Ansible Molecule e o plugin Docker
hosts: localhost
roles:
- docker
tasks:
- name: Instala as dependências para a família Debian
ansible.builtin.apt:
pkg:
- python3-pip
- libssl-dev
when: ansible_facts['os_family'] == 'Debian'
- name: Instala as dependências para a família RedHat
ansible.builtin.dnf:
name:
- gcc
- python3-pip
- python3-devel
- openssl-devel
- python3-libselinux
when: ansible_facts['os_family'] == 'RedHat'
- name: Instala o Ansible Molecule, o plugin Docker e o Testinfra
ansible.builtin.pip:
name:
- molecule
- molecule-plugins[docker]
- pytest-testinfra
notify: Logout warning
handlers:
- name: Logout warning
ansible.builtin.debug:
msg: "Talvez você tenha que fazer logout e login para usar o Molecule"