This repository has been archived on 2022-07-05. You can view files and clone it, but cannot push or open issues or pull requests.
autonomic.swarm-single-node/molecule/default/converge.yml

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