Commit c4248563 authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[refactor] split tasks inside the common role

It should make it easier to organize tasks, and give us easy access to
"become" for an entire group of tasks.
parent e5141214
- name: create argo root directory
file:
path: /argo
state: directory
owner: root
group: root
mode: 0777
- name: add common dev dependencies
package:
name: "{{ item }}"
state: present
with_items:
- python-pip
- gcc
- automake
- autoconf
- libtool
- make
- name: add pipenv for python packages
command: pip install pipenv
- name: update etc/hosts
lineinfile:
dest: /etc/hosts
line: "{{ hostvars[item].ansible_host }} {{ hostvars[item].inventory_hostname }} {{ hostvars[item].inventory_hostname_short }}"
state: present
with_items: "{{ groups.all }}"
become: yes
- name: create argo directory
file:
path: /argo
state: directory
owner: root
group: root
mode: 0755
become: yes
- name: update etc/hosts - { include: cluster-config.yaml, become: yes }
lineinfile: - { include: argo-dependencies.yaml, become: yes }
dest: /etc/hosts
line: "{{ hostvars[item].ansible_host }} {{ hostvars[item].inventory_hostname }} {{ hostvars[item].inventory_hostname_short }}"
state: present
with_items: "{{ groups.all }}"
become: yes
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment