View gist:a0ac0aa77faee9ace65025ae83821ce2
import logging
import sys
import colorama
colorama.init(autoreset=True)
SUCCESS = 100
NOTICE = 101
View gist:ab0f1c8de9bbe73879212b42655e971e
- name: Copy files
command: rsync --delay-updates -F --compress --archive --no-owner --no-group --no-perms --out-format='<<CHANGED>>%i %n%L' /etc/{{ item }} {{ files_path }}/{{ item }}
register: rsync_out
changed_when: rsync_out.stdout|default("") | search("CHANGED")
failed_when: false
with_items: "{{ files }}"
View gist:47eb3857f3fafebad51df1f66ebb7a2f
[jodewey:~/git/molecule_2/test/scenarios/driver/vagrant] 0452ba3(+0/-0)+ REBASING ± molecule create
--> Scenario: [default]
--> Provisioner: [ansible]
--> Playbook: [create.yml]
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
View gist:f397839ebdd5c2d11ee78af15672202c
Last login: Sat Dec 17 17:25:01 on ttys001
cd % [jodewey:~] % cd /Users/jodewey/git/molecule_2/test/scenarios/docker
[jodewey:~/git/molecule_2/test/scenarios/docker] [molecule2-env-2.7.12] v2+ ± molecule create; molecule converge; molecule verify; molecule lint; molecule destroy
--> Scenario: [default]
--> Provisioner: [ansible]
--> Playbook: [create.yml]
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
View gist:686c5b3e0bf870679abf9809205ac017
[jodewey:~/git/molecule_2/test/scenarios/docker] [molecule2-env-2.7.12] v2(+95/-177)+ 1 ± molecule create
--> Scenario: [default]
--> Executing playbook '/Users/jodewey/git/molecule_2/test/scenarios/docker/molecule/default/create.yml'...
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [Boostrap molecule container(s)] ******************************************
View users.yml
- name: Create database users
mysql_user: append_privs={{ item.append_privs|default(omit) }}
check_implicit_admin={{ item.check_implicit|default(omit) }}
config_file={{ item.config_file|default(omit) }}
encrypted={{ item.encrypted|default(omit) }}
host={{ item.host|default(omit) }}
host_all={{ item.host_all|default(omit) }}
login_host={{ item.login_host|default(omit) }}
login_password={{ item.login_password|default(omit) }}
login_port={{ item.login_port|default(omit) }}
View gist:830c1a6f70451b9584163efb887a588a
shit-01: SSH address: 127.0.0.1:2222
shit-01: SSH username: vagrant
shit-01: SSH auth method: private key
View gist:944823ac5273608c48e1
servers:
"{{ hostvars|haproxy_backend(haproxy_number_of_backends, groups[mongo_group], internal_primary_interface, mongo.backend_port, 'check') }}"
View gist:f25cf7f63dd4e812cd7c
rabbit_hosts: "{{ hostvars|fetch_list_from_dict(groups.aio)|map(attribute='ansible_internal_primary_interface.ipv4.address')|map('add_port', rabbitmq.port)|join(',') }}"
View gist:c8d86e6768902b9df1b0
[jodewey:~/git/ansible-systems/roles/xxx.bind] retr0h/bind-cleanup(+21/-5)+ 1 ± molecule test
Bringing machine 'aio-01' up with 'virtualbox' provider...
Bringing machine 'aio-02' up with 'virtualbox' provider...
Bringing machine 'aio-03' up with 'virtualbox' provider...
==> aio-01: Importing base box 'rhel-7'...
...
PLAY RECAP ********************************************************************
aio-01 : ok=20 changed=15 unreachable=0 failed=0
aio-02 : ok=11 changed=9 unreachable=0 failed=0
aio-03 : ok=11 changed=9 unreachable=0 failed=0