36 lines
977 B
YAML
36 lines
977 B
YAML
---
|
|
- name: Converge
|
|
hosts: all
|
|
vars:
|
|
- swarm_single_node_enable_proxy: true
|
|
- members: files/members.yml
|
|
pre_tasks:
|
|
- name: Include resource variables
|
|
include_vars: "{{ members }}"
|
|
|
|
# Note(decentral1se): We create the accounts before the role since we want
|
|
# those accounts to exist so we can make sure they are used in the role
|
|
# under test
|
|
- name: Prepare user accounts for the role under test
|
|
user:
|
|
name: "{{ item.username }}"
|
|
shell: /bin/bash
|
|
password: "$apr1$GILkREir$r2zDF8rr9Bl8We9UVXnZl1"
|
|
groups: sudo
|
|
append: true
|
|
update_password: always
|
|
with_items: "{{ members }}"
|
|
|
|
- name: Update repository cache
|
|
apt:
|
|
update_cache: true
|
|
tasks:
|
|
- name: "Include {{ role_name }}"
|
|
include_role:
|
|
name: "{{ role_name }}"
|
|
loop:
|
|
- geerlingguy.docker
|
|
- autonomic.swarm-single-node
|
|
loop_control:
|
|
loop_var: role_name
|