diff --git a/.gitignore b/.gitignore index 2aeee11..9e78778 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,6 @@ hosts.d # Vagrant .vagrant + +# Debug files +ansible-vars.all \ No newline at end of file diff --git a/playbook/debugDumpAnsibleVars.yml b/playbook/debug/debugDumpAnsibleVars.yml similarity index 86% rename from playbook/debugDumpAnsibleVars.yml rename to playbook/debug/debugDumpAnsibleVars.yml index 020b757..9967f09 100644 --- a/playbook/debugDumpAnsibleVars.yml +++ b/playbook/debug/debugDumpAnsibleVars.yml @@ -11,6 +11,6 @@ - name: Copy new file to host fetch: src: /tmp/ansible-vars.all - dest: special/ansible-vars.all + dest: ansible-vars.all flat: yes diff --git a/playbook/dumpall.j2 b/playbook/debug/dumpall.j2 similarity index 100% rename from playbook/dumpall.j2 rename to playbook/debug/dumpall.j2 diff --git a/playbook/linux/install-awx.yml b/playbook/linux/install-awx.yml new file mode 100644 index 0000000..5bbc947 --- /dev/null +++ b/playbook/linux/install-awx.yml @@ -0,0 +1,48 @@ +--- +- hosts: linux + become: yes + + vars: + nodejs_version: "6.x" + pip_install_packages: + - name: docker-compose + - name: docker + awx_run_install_playbook: yes + + pre_tasks: + # Note: First time running this I had to go and manually remove the pip docker modules. + # For some reason the playbook was failing to do this for me. + # Once I did that, AWX installed. + - name: install pip3 + apt: + name: python3-pip + state: present + + - name: pip3 remove docker + pip: + name: docker + state: absent + executable: pip3 + + - name: pip3 install docker-py + pip: + name: docker-py + state: absent + executable: pip3 + + - name: pip remove docker + pip: + name: docker + state: absent + executable: pip + + + + roles: + #- geerlingguy.repo-epel + - geerlingguy.git + - geerlingguy.ansible + - geerlingguy.docker + - geerlingguy.pip + - geerlingguy.nodejs + - geerlingguy.awx \ No newline at end of file diff --git a/playbook/macos/installDevTools.yml b/playbook/macos/installDevTools.yml index 514db85..7030dff 100644 --- a/playbook/macos/installDevTools.yml +++ b/playbook/macos/installDevTools.yml @@ -4,8 +4,65 @@ hosts: osx tasks: - - name: Install python3 + - name: Install python3 dev homebrew: name: python3 state: present - when: ansible_distribution == "MacOS" \ No newline at end of file + when: ansible_distribution == "MacOSX" + + - name: Install pipenv + homebrew: + name: pipenv + state: present + when: ansible_distribution == "MacOSX" + + - name: Install VisualStudioCode + homebrew_cask: + name: visual-studio-code + state: present + when: ansible_distribution == "MacOSX" + + - name: Install vagrant + homebrew_cask: + name: vagrant + state: present + when: ansible_distribution == "MacOSX" + + - name: Install amethyst + homebrew_cask: + name: amethyst + state: present + when: ansible_distribution == "MacOSX" + + - name: Install docker + homebrew_cask: + name: docker + state: present + when: ansible_distribution == "MacOSX" + + - name: remove cask - darktable + homebrew_cask: + name: darktable + state: absent + when: ansible_distribution == 'MacOSX' + + #TODO The job seems to stop here for some reason + - name: remove cask - dotnet-sdk + homebrew_cask: + name: dotnet-sdk + state: absent + when: ansible_distribution == 'MacOSX' + + - name: remove cask - visual-studio + homebrew_cask: + name: visual-studio + state: absent + when: ansible_distribution == 'MacOSX' + + - name: remove cask - rider + homebrew_cask: + name: rider + state: absent + when: ansible_distribution == 'MacOSX' + + diff --git a/playbook/special/ansible-vars.all b/playbook/special/ansible-vars.all deleted file mode 100644 index d0834c0..0000000 --- a/playbook/special/ansible-vars.all +++ /dev/null @@ -1,4230 +0,0 @@ -Module Variables ("vars"): --------------------------------- -{ - "ansible_XHC20": { - "device": "XHC20", - "flags": [], - "ipv4": [], - "ipv6": [], - "macaddress": "unknown", - "mtu": "0", - "type": "unknown" - }, - "ansible_all_ipv4_addresses": [ - "192.168.0.34" - ], - "ansible_all_ipv6_addresses": [ - "fe80::421:ab7:8eea:ae1b%en0", - "fe80::2828:d6ff:fe5e:de8%awdl0", - "fe80::2828:d6ff:fe5e:de8%llw0", - "fe80::4a0c:f6b5:f6fa:d72e%utun0", - "fe80::ede1:8366:c98:a7b1%utun1", - "fe80::583d:52ab:afc:8a7f%utun2", - "fe80::4adc:23a1:e517:35f1%utun3", - "fe80::32f7:6f62:3d81:5cba%utun4", - "fe80::ed73:d6b:d97a:cf4f%utun5", - "fe80::3636:3bff:fecf:f2b2%ipsec0", - "2607:fb90:cc1:58dc:6b1:7b3a:6b5d:fad7" - ], - "ansible_apparmor": { - "status": "disabled" - }, - "ansible_architecture": "x86_64", - "ansible_awdl0": { - "device": "awdl0", - "flags": [ - "UP", - "BROADCAST", - "RUNNING", - "PROMISC", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::2828:d6ff:fe5e:de8%awdl0", - "prefix": "64", - "scope": "0x7" - } - ], - "macaddress": "2a:28:d6:5e:0d:e8", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1484", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "ansible_bridge0": { - "device": "bridge0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "82:0f:22:2a:5f:00", - "media": "Unknown", - "media_select": "Unknown", - "media_type": "unknown type", - "mtu": "1500", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "inactive", - "type": "ether" - }, - "ansible_check_mode": false, - "ansible_date_time": { - "date": "2019-10-18", - "day": "18", - "epoch": "1571450977", - "hour": "19", - "iso8601": "2019-10-19T02:09:37Z", - "iso8601_basic": "20191018T190937748074", - "iso8601_basic_short": "20191018T190937", - "iso8601_micro": "2019-10-19T02:09:37.748159Z", - "minute": "09", - "month": "10", - "second": "37", - "time": "19:09:37", - "tz": "PDT", - "tz_offset": "-0700", - "weekday": "Friday", - "weekday_number": "5", - "weeknumber": "41", - "year": "2019" - }, - "ansible_default_ipv4": { - "address": "192.168.0.34", - "broadcast": "192.168.0.255", - "device": "en0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "gateway": "192.168.0.1", - "interface": "en0", - "macaddress": "34:36:3b:cf:f2:b2", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1500", - "netmask": "255.255.255.0", - "network": "192.168.0.0", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "ansible_default_ipv6": {}, - "ansible_diff_mode": false, - "ansible_distribution": "MacOSX", - "ansible_distribution_major_version": "10", - "ansible_distribution_release": "19.0.0", - "ansible_distribution_version": "10.15", - "ansible_dns": { - "domain": "domain", - "nameservers": [ - "192.168.0.1", - "192.168.0.1" - ] - }, - "ansible_domain": "domain", - "ansible_effective_group_id": 20, - "ansible_effective_user_id": 501, - "ansible_en0": { - "device": "en0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [ - { - "address": "192.168.0.34", - "broadcast": "192.168.0.255", - "netmask": "255.255.255.0", - "network": "192.168.0.0" - } - ], - "ipv6": [ - { - "address": "fe80::421:ab7:8eea:ae1b%en0", - "prefix": "64" - } - ], - "macaddress": "34:36:3b:cf:f2:b2", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1500", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "ansible_en1": { - "device": "en1", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "PROMISC", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "82:0f:22:2a:5f:00", - "media": "Unknown", - "media_select": "autoselect", - "media_type": "full-duplex", - "mtu": "1500", - "options": [ - "TSO4", - "TSO6", - "CHANNEL_IO" - ], - "status": "inactive", - "type": "ether" - }, - "ansible_en2": { - "device": "en2", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "PROMISC", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "82:0f:22:2a:5f:01", - "media": "Unknown", - "media_select": "autoselect", - "media_type": "full-duplex", - "mtu": "1500", - "options": [ - "TSO4", - "TSO6", - "CHANNEL_IO" - ], - "status": "inactive", - "type": "ether" - }, - "ansible_env": { - "HOME": "/Users/jamestombleson", - "LOGNAME": "jamestombleson", - "MAIL": "/var/mail/jamestombleson", - "PATH": "/usr/bin:/bin:/usr/sbin:/sbin", - "PWD": "/Users/jamestombleson", - "SHELL": "/bin/zsh", - "SHLVL": "1", - "SSH_CLIENT": "127.0.0.1 63351 22", - "SSH_CONNECTION": "127.0.0.1 63351 127.0.0.1 22", - "SSH_TTY": "/dev/ttys005", - "TERM": "xterm-256color", - "TMPDIR": "/var/folders/r3/7kdlrnn518x4653b3rk0z8000000gn/T/", - "USER": "jamestombleson", - "VERSIONER_PYTHON_VERSION": "2.7", - "_": "/usr/bin/python", - "__CF_USER_TEXT_ENCODING": "0x1F5:0x0:0x0" - }, - "ansible_facts": { - "XHC20": { - "device": "XHC20", - "flags": [], - "ipv4": [], - "ipv6": [], - "macaddress": "unknown", - "mtu": "0", - "type": "unknown" - }, - "all_ipv4_addresses": [ - "192.168.0.34" - ], - "all_ipv6_addresses": [ - "fe80::421:ab7:8eea:ae1b%en0", - "fe80::2828:d6ff:fe5e:de8%awdl0", - "fe80::2828:d6ff:fe5e:de8%llw0", - "fe80::4a0c:f6b5:f6fa:d72e%utun0", - "fe80::ede1:8366:c98:a7b1%utun1", - "fe80::583d:52ab:afc:8a7f%utun2", - "fe80::4adc:23a1:e517:35f1%utun3", - "fe80::32f7:6f62:3d81:5cba%utun4", - "fe80::ed73:d6b:d97a:cf4f%utun5", - "fe80::3636:3bff:fecf:f2b2%ipsec0", - "2607:fb90:cc1:58dc:6b1:7b3a:6b5d:fad7" - ], - "ansible_local": {}, - "apparmor": { - "status": "disabled" - }, - "architecture": "x86_64", - "awdl0": { - "device": "awdl0", - "flags": [ - "UP", - "BROADCAST", - "RUNNING", - "PROMISC", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::2828:d6ff:fe5e:de8%awdl0", - "prefix": "64", - "scope": "0x7" - } - ], - "macaddress": "2a:28:d6:5e:0d:e8", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1484", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "bridge0": { - "device": "bridge0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "82:0f:22:2a:5f:00", - "media": "Unknown", - "media_select": "Unknown", - "media_type": "unknown type", - "mtu": "1500", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "inactive", - "type": "ether" - }, - "date_time": { - "date": "2019-10-18", - "day": "18", - "epoch": "1571450977", - "hour": "19", - "iso8601": "2019-10-19T02:09:37Z", - "iso8601_basic": "20191018T190937748074", - "iso8601_basic_short": "20191018T190937", - "iso8601_micro": "2019-10-19T02:09:37.748159Z", - "minute": "09", - "month": "10", - "second": "37", - "time": "19:09:37", - "tz": "PDT", - "tz_offset": "-0700", - "weekday": "Friday", - "weekday_number": "5", - "weeknumber": "41", - "year": "2019" - }, - "default_ipv4": { - "address": "192.168.0.34", - "broadcast": "192.168.0.255", - "device": "en0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "gateway": "192.168.0.1", - "interface": "en0", - "macaddress": "34:36:3b:cf:f2:b2", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1500", - "netmask": "255.255.255.0", - "network": "192.168.0.0", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "default_ipv6": {}, - "distribution": "MacOSX", - "distribution_major_version": "10", - "distribution_release": "19.0.0", - "distribution_version": "10.15", - "dns": { - "domain": "domain", - "nameservers": [ - "192.168.0.1", - "192.168.0.1" - ] - }, - "domain": "domain", - "effective_group_id": 20, - "effective_user_id": 501, - "en0": { - "device": "en0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [ - { - "address": "192.168.0.34", - "broadcast": "192.168.0.255", - "netmask": "255.255.255.0", - "network": "192.168.0.0" - } - ], - "ipv6": [ - { - "address": "fe80::421:ab7:8eea:ae1b%en0", - "prefix": "64" - } - ], - "macaddress": "34:36:3b:cf:f2:b2", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1500", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "en1": { - "device": "en1", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "PROMISC", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "82:0f:22:2a:5f:00", - "media": "Unknown", - "media_select": "autoselect", - "media_type": "full-duplex", - "mtu": "1500", - "options": [ - "TSO4", - "TSO6", - "CHANNEL_IO" - ], - "status": "inactive", - "type": "ether" - }, - "en2": { - "device": "en2", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "PROMISC", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "82:0f:22:2a:5f:01", - "media": "Unknown", - "media_select": "autoselect", - "media_type": "full-duplex", - "mtu": "1500", - "options": [ - "TSO4", - "TSO6", - "CHANNEL_IO" - ], - "status": "inactive", - "type": "ether" - }, - "env": { - "HOME": "/Users/jamestombleson", - "LOGNAME": "jamestombleson", - "MAIL": "/var/mail/jamestombleson", - "PATH": "/usr/bin:/bin:/usr/sbin:/sbin", - "PWD": "/Users/jamestombleson", - "SHELL": "/bin/zsh", - "SHLVL": "1", - "SSH_CLIENT": "127.0.0.1 63351 22", - "SSH_CONNECTION": "127.0.0.1 63351 127.0.0.1 22", - "SSH_TTY": "/dev/ttys005", - "TERM": "xterm-256color", - "TMPDIR": "/var/folders/r3/7kdlrnn518x4653b3rk0z8000000gn/T/", - "USER": "jamestombleson", - "VERSIONER_PYTHON_VERSION": "2.7", - "_": "/usr/bin/python", - "__CF_USER_TEXT_ENCODING": "0x1F5:0x0:0x0" - }, - "fips": false, - "fqdn": "macbook-pro-4.domain", - "gather_subset": [ - "all" - ], - "gif0": { - "device": "gif0", - "flags": [ - "POINTOPOINT", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "unknown", - "mtu": "1280", - "type": "unknown" - }, - "hostname": "MacBook-Pro-4", - "interfaces": [ - "XHC20", - "awdl0", - "bridge0", - "en0", - "en1", - "en2", - "gif0", - "ipsec0", - "llw0", - "lo0", - "p2p0", - "stf0", - "utun0", - "utun1", - "utun2", - "utun3", - "utun4", - "utun5" - ], - "ipsec0": { - "device": "ipsec0", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::3636:3bff:fecf:f2b2%ipsec0", - "prefix": "64", - "scope": "0x12" - }, - { - "address": "2607:fb90:cc1:58dc:6b1:7b3a:6b5d:fad7", - "prefix": "64" - } - ], - "macaddress": "unknown", - "mtu": "50000", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "is_chroot": false, - "iscsi_iqn": "", - "kernel": "19.0.0", - "llw0": { - "device": "llw0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::2828:d6ff:fe5e:de8%llw0", - "prefix": "64", - "scope": "0x8" - } - ], - "macaddress": "2a:28:d6:5e:0d:e8", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1500", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "lo0": { - "device": "lo0", - "flags": [ - "UP", - "LOOPBACK", - "RUNNING", - "MULTICAST" - ], - "ipv4": [ - { - "address": "127.0.0.1", - "broadcast": "127.255.255.255", - "netmask": "255.0.0.0", - "network": "127.0.0.0" - } - ], - "ipv6": [ - { - "address": "::1", - "prefix": "128" - }, - { - "address": "fe80::1%lo0", - "prefix": "64", - "scope": "0x1" - } - ], - "macaddress": "unknown", - "mtu": "16384", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "loopback" - }, - "lsb": {}, - "machine": "x86_64", - "memfree_mb": 94, - "memtotal_mb": 16384, - "model": "MacBookPro11,2", - "module_setup": true, - "nodename": "MacBook-Pro-4.domain", - "os_family": "Darwin", - "osrevision": "199506", - "osversion": "19A583", - "p2p0": { - "device": "p2p0", - "flags": [ - "UP", - "BROADCAST", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "06:36:3b:cf:f2:b2", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "2304", - "options": [ - "CHANNEL_IO" - ], - "status": "inactive", - "type": "ether" - }, - "pkg_mgr": "homebrew", - "processor": "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz", - "processor_cores": "4", - "processor_vcpus": "8", - "python": { - "executable": "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python", - "has_sslcontext": true, - "type": "CPython", - "version": { - "major": 2, - "micro": 16, - "minor": 7, - "releaselevel": "final", - "serial": 0 - }, - "version_info": [ - 2, - 7, - 16, - "final", - 0 - ] - }, - "python_version": "2.7.16", - "real_group_id": 20, - "real_user_id": 501, - "selinux": { - "status": "Missing selinux Python library" - }, - "selinux_python_present": false, - "service_mgr": "launchd", - "ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBANaOKYJdhj0tZBxpolab3EOj5QIOPtKRCcuSopZyEHnqROCHsPSfITy9XsDCAuFpdnkWmyPWE6Phix4BHFq3X+ArP0hHZWxl8zF5nRss25WgtJg/ntJJ3kK8F7ldkqd89HISMnwkCJTp99842x0pFfPn5/hDJfStGXnTcABj/GPnAAAAFQCXBgShNVEh9ddQR32k1I4nxojRZQAAAIBhf04evMhdXIjhD8swgtp8DJkaZ0Nd7eXcJIiuSOdHwtffaBH1llL2L0vELrvLtvJSTEpnh000mqlRoX8C0wSC20SoWV5ul4kxvdmliXvO2BhG0XXfUOvqPxt9+W1KDv+9xvbembAfJvWJ1VDUJb/tXRpw+/Hz4pviuKLQ9CPR/wAAAIBIy04P3TZ7h7UN+mYhld+YKR2ei6HAGooF4uaGxPh1xzZtLUyidFg3+iPU0AMAZfHzB01ZLMqsJSXutZnJ5twmmyMef55c+YZpw9aBMCWZzhbrPoowoly86c6Aq6zwEiyiCeMrdnXcTouh12MpmfzgfT7j7LiyZsLtvQQVCp6Y8w==", - "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLkhDLo+ofDRAYNdnntLko5AFFw5yfeW15JOtfFsq04LvBDT6ZvEx8rRLiCSnaXMdDjlvj/gU6LYJTWM+5MPeKc=", - "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIAs4JsI/X77ORabsqAt2Kv/LKXtlvXvYi6L11wF6sLSG", - "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDFMVMTbD4rv09xtTpJPIGjitvK0Ell5m+BGUjP3q8c+CloxwVmHhx3MDLz4CnAp+FpqfZRO2nxbPgbw+FAkhlPy08IWKbO9Ttm31tRDQT87P4dcF59lfWJ0lt9z0ZW81GeztH0pQEB/ug9LYgJjUSBlqKPfwNDbmeWZzqMnCfXpRzyFgNiNo/uFfpe/flnpjP2pS+V3qPD4hO5SAAi7oPSLW8pTeQKU/luPQldiEKNcu43nqWiFFJaxIQ5jhj1DmCY2C73aXeeAW95gDay1T/C6XqsOaAAxlFi6rp217MdCZqz3ut+MHnYYARrp3cqL4RSg4B4Sa4Fj1FFevxYZv7f", - "stf0": { - "device": "stf0", - "flags": [], - "ipv4": [], - "ipv6": [], - "macaddress": "unknown", - "mtu": "1280", - "type": "unknown" - }, - "system": "Darwin", - "user_dir": "/Users/jamestombleson", - "user_gecos": "James Tombleson", - "user_gid": 20, - "user_id": "jamestombleson", - "user_shell": "/bin/zsh", - "user_uid": 501, - "userspace_architecture": "x86_64", - "userspace_bits": "64", - "utun0": { - "device": "utun0", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::4a0c:f6b5:f6fa:d72e%utun0", - "prefix": "64", - "scope": "0xc" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "utun1": { - "device": "utun1", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::ede1:8366:c98:a7b1%utun1", - "prefix": "64", - "scope": "0xd" - } - ], - "macaddress": "unknown", - "mtu": "2000", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "utun2": { - "device": "utun2", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::583d:52ab:afc:8a7f%utun2", - "prefix": "64", - "scope": "0xe" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "utun3": { - "device": "utun3", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::4adc:23a1:e517:35f1%utun3", - "prefix": "64", - "scope": "0xf" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "utun4": { - "device": "utun4", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::32f7:6f62:3d81:5cba%utun4", - "prefix": "64", - "scope": "0x10" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "utun5": { - "device": "utun5", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::ed73:d6b:d97a:cf4f%utun5", - "prefix": "64", - "scope": "0x11" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "virtualization_role": "", - "virtualization_type": "" - }, - "ansible_fips": false, - "ansible_forks": 5, - "ansible_fqdn": "macbook-pro-4.domain", - "ansible_gif0": { - "device": "gif0", - "flags": [ - "POINTOPOINT", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "unknown", - "mtu": "1280", - "type": "unknown" - }, - "ansible_hostname": "MacBook-Pro-4", - "ansible_interfaces": [ - "XHC20", - "awdl0", - "bridge0", - "en0", - "en1", - "en2", - "gif0", - "ipsec0", - "llw0", - "lo0", - "p2p0", - "stf0", - "utun0", - "utun1", - "utun2", - "utun3", - "utun4", - "utun5" - ], - "ansible_inventory_sources": [ - "/Users/jamestombleson/Documents/GitHub/Ansible/hosts" - ], - "ansible_ipsec0": { - "device": "ipsec0", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::3636:3bff:fecf:f2b2%ipsec0", - "prefix": "64", - "scope": "0x12" - }, - { - "address": "2607:fb90:cc1:58dc:6b1:7b3a:6b5d:fad7", - "prefix": "64" - } - ], - "macaddress": "unknown", - "mtu": "50000", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_is_chroot": false, - "ansible_iscsi_iqn": "", - "ansible_kernel": "19.0.0", - "ansible_llw0": { - "device": "llw0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::2828:d6ff:fe5e:de8%llw0", - "prefix": "64", - "scope": "0x8" - } - ], - "macaddress": "2a:28:d6:5e:0d:e8", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1500", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "ansible_lo0": { - "device": "lo0", - "flags": [ - "UP", - "LOOPBACK", - "RUNNING", - "MULTICAST" - ], - "ipv4": [ - { - "address": "127.0.0.1", - "broadcast": "127.255.255.255", - "netmask": "255.0.0.0", - "network": "127.0.0.0" - } - ], - "ipv6": [ - { - "address": "::1", - "prefix": "128" - }, - { - "address": "fe80::1%lo0", - "prefix": "64", - "scope": "0x1" - } - ], - "macaddress": "unknown", - "mtu": "16384", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "loopback" - }, - "ansible_local": {}, - "ansible_lsb": {}, - "ansible_machine": "x86_64", - "ansible_memfree_mb": 94, - "ansible_memtotal_mb": 16384, - "ansible_model": "MacBookPro11,2", - "ansible_nodename": "MacBook-Pro-4.domain", - "ansible_os_family": "Darwin", - "ansible_osrevision": "199506", - "ansible_osversion": "19A583", - "ansible_p2p0": { - "device": "p2p0", - "flags": [ - "UP", - "BROADCAST", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "06:36:3b:cf:f2:b2", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "2304", - "options": [ - "CHANNEL_IO" - ], - "status": "inactive", - "type": "ether" - }, - "ansible_password": "Pm98cdLm38iq", - "ansible_pkg_mgr": "homebrew", - "ansible_play_batch": [ - "127.0.0.1" - ], - "ansible_play_hosts": [ - "127.0.0.1" - ], - "ansible_play_hosts_all": [ - "127.0.0.1" - ], - "ansible_playbook_python": "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python", - "ansible_processor": "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz", - "ansible_processor_cores": "4", - "ansible_processor_vcpus": "8", - "ansible_python": { - "executable": "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python", - "has_sslcontext": true, - "type": "CPython", - "version": { - "major": 2, - "micro": 16, - "minor": 7, - "releaselevel": "final", - "serial": 0 - }, - "version_info": [ - 2, - 7, - 16, - "final", - 0 - ] - }, - "ansible_python_version": "2.7.16", - "ansible_real_group_id": 20, - "ansible_real_user_id": 501, - "ansible_run_tags": [ - "all" - ], - "ansible_selinux": { - "status": "Missing selinux Python library" - }, - "ansible_selinux_python_present": false, - "ansible_service_mgr": "launchd", - "ansible_skip_tags": [], - "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBANaOKYJdhj0tZBxpolab3EOj5QIOPtKRCcuSopZyEHnqROCHsPSfITy9XsDCAuFpdnkWmyPWE6Phix4BHFq3X+ArP0hHZWxl8zF5nRss25WgtJg/ntJJ3kK8F7ldkqd89HISMnwkCJTp99842x0pFfPn5/hDJfStGXnTcABj/GPnAAAAFQCXBgShNVEh9ddQR32k1I4nxojRZQAAAIBhf04evMhdXIjhD8swgtp8DJkaZ0Nd7eXcJIiuSOdHwtffaBH1llL2L0vELrvLtvJSTEpnh000mqlRoX8C0wSC20SoWV5ul4kxvdmliXvO2BhG0XXfUOvqPxt9+W1KDv+9xvbembAfJvWJ1VDUJb/tXRpw+/Hz4pviuKLQ9CPR/wAAAIBIy04P3TZ7h7UN+mYhld+YKR2ei6HAGooF4uaGxPh1xzZtLUyidFg3+iPU0AMAZfHzB01ZLMqsJSXutZnJ5twmmyMef55c+YZpw9aBMCWZzhbrPoowoly86c6Aq6zwEiyiCeMrdnXcTouh12MpmfzgfT7j7LiyZsLtvQQVCp6Y8w==", - "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLkhDLo+ofDRAYNdnntLko5AFFw5yfeW15JOtfFsq04LvBDT6ZvEx8rRLiCSnaXMdDjlvj/gU6LYJTWM+5MPeKc=", - "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIAs4JsI/X77ORabsqAt2Kv/LKXtlvXvYi6L11wF6sLSG", - "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDFMVMTbD4rv09xtTpJPIGjitvK0Ell5m+BGUjP3q8c+CloxwVmHhx3MDLz4CnAp+FpqfZRO2nxbPgbw+FAkhlPy08IWKbO9Ttm31tRDQT87P4dcF59lfWJ0lt9z0ZW81GeztH0pQEB/ug9LYgJjUSBlqKPfwNDbmeWZzqMnCfXpRzyFgNiNo/uFfpe/flnpjP2pS+V3qPD4hO5SAAi7oPSLW8pTeQKU/luPQldiEKNcu43nqWiFFJaxIQ5jhj1DmCY2C73aXeeAW95gDay1T/C6XqsOaAAxlFi6rp217MdCZqz3ut+MHnYYARrp3cqL4RSg4B4Sa4Fj1FFevxYZv7f", - "ansible_stf0": { - "device": "stf0", - "flags": [], - "ipv4": [], - "ipv6": [], - "macaddress": "unknown", - "mtu": "1280", - "type": "unknown" - }, - "ansible_system": "Darwin", - "ansible_user": "jamestombleson", - "ansible_user_dir": "/Users/jamestombleson", - "ansible_user_gecos": "James Tombleson", - "ansible_user_gid": 20, - "ansible_user_id": "jamestombleson", - "ansible_user_shell": "/bin/zsh", - "ansible_user_uid": 501, - "ansible_userspace_architecture": "x86_64", - "ansible_userspace_bits": "64", - "ansible_utun0": { - "device": "utun0", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::4a0c:f6b5:f6fa:d72e%utun0", - "prefix": "64", - "scope": "0xc" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_utun1": { - "device": "utun1", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::ede1:8366:c98:a7b1%utun1", - "prefix": "64", - "scope": "0xd" - } - ], - "macaddress": "unknown", - "mtu": "2000", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_utun2": { - "device": "utun2", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::583d:52ab:afc:8a7f%utun2", - "prefix": "64", - "scope": "0xe" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_utun3": { - "device": "utun3", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::4adc:23a1:e517:35f1%utun3", - "prefix": "64", - "scope": "0xf" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_utun4": { - "device": "utun4", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::32f7:6f62:3d81:5cba%utun4", - "prefix": "64", - "scope": "0x10" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_utun5": { - "device": "utun5", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::ed73:d6b:d97a:cf4f%utun5", - "prefix": "64", - "scope": "0x11" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_verbosity": 0, - "ansible_version": { - "full": "2.7.9", - "major": 2, - "minor": 7, - "revision": 9, - "string": "2.7.9" - }, - "ansible_virtualization_role": "", - "ansible_virtualization_type": "", - "environment": [], - "gather_subset": [ - "all" - ], - "group_names": [ - "osx" - ], - "groups": { - "all": [ - "192.168.0.60", - "192.168.0.2", - "127.0.0.1" - ], - "elastic": [ - "192.168.0.60" - ], - "jenkins": [ - "192.168.0.60" - ], - "linux": [ - "192.168.0.60" - ], - "osx": [ - "127.0.0.1" - ], - "sensu_masters": [ - "192.168.0.60" - ], - "sensu_rabbitmq_servers": [ - "192.168.0.60" - ], - "sensu_redis_servers": [ - "192.168.0.60" - ], - "ungrouped": [], - "windows": [ - "192.168.0.2" - ] - }, - "hostvars": { - "127.0.0.1": { - "ansible_XHC20": { - "device": "XHC20", - "flags": [], - "ipv4": [], - "ipv6": [], - "macaddress": "unknown", - "mtu": "0", - "type": "unknown" - }, - "ansible_all_ipv4_addresses": [ - "192.168.0.34" - ], - "ansible_all_ipv6_addresses": [ - "fe80::421:ab7:8eea:ae1b%en0", - "fe80::2828:d6ff:fe5e:de8%awdl0", - "fe80::2828:d6ff:fe5e:de8%llw0", - "fe80::4a0c:f6b5:f6fa:d72e%utun0", - "fe80::ede1:8366:c98:a7b1%utun1", - "fe80::583d:52ab:afc:8a7f%utun2", - "fe80::4adc:23a1:e517:35f1%utun3", - "fe80::32f7:6f62:3d81:5cba%utun4", - "fe80::ed73:d6b:d97a:cf4f%utun5", - "fe80::3636:3bff:fecf:f2b2%ipsec0", - "2607:fb90:cc1:58dc:6b1:7b3a:6b5d:fad7" - ], - "ansible_apparmor": { - "status": "disabled" - }, - "ansible_architecture": "x86_64", - "ansible_awdl0": { - "device": "awdl0", - "flags": [ - "UP", - "BROADCAST", - "RUNNING", - "PROMISC", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::2828:d6ff:fe5e:de8%awdl0", - "prefix": "64", - "scope": "0x7" - } - ], - "macaddress": "2a:28:d6:5e:0d:e8", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1484", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "ansible_bridge0": { - "device": "bridge0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "82:0f:22:2a:5f:00", - "media": "Unknown", - "media_select": "Unknown", - "media_type": "unknown type", - "mtu": "1500", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "inactive", - "type": "ether" - }, - "ansible_check_mode": false, - "ansible_date_time": { - "date": "2019-10-18", - "day": "18", - "epoch": "1571450977", - "hour": "19", - "iso8601": "2019-10-19T02:09:37Z", - "iso8601_basic": "20191018T190937748074", - "iso8601_basic_short": "20191018T190937", - "iso8601_micro": "2019-10-19T02:09:37.748159Z", - "minute": "09", - "month": "10", - "second": "37", - "time": "19:09:37", - "tz": "PDT", - "tz_offset": "-0700", - "weekday": "Friday", - "weekday_number": "5", - "weeknumber": "41", - "year": "2019" - }, - "ansible_default_ipv4": { - "address": "192.168.0.34", - "broadcast": "192.168.0.255", - "device": "en0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "gateway": "192.168.0.1", - "interface": "en0", - "macaddress": "34:36:3b:cf:f2:b2", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1500", - "netmask": "255.255.255.0", - "network": "192.168.0.0", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "ansible_default_ipv6": {}, - "ansible_diff_mode": false, - "ansible_distribution": "MacOSX", - "ansible_distribution_major_version": "10", - "ansible_distribution_release": "19.0.0", - "ansible_distribution_version": "10.15", - "ansible_dns": { - "domain": "domain", - "nameservers": [ - "192.168.0.1", - "192.168.0.1" - ] - }, - "ansible_domain": "domain", - "ansible_effective_group_id": 20, - "ansible_effective_user_id": 501, - "ansible_en0": { - "device": "en0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [ - { - "address": "192.168.0.34", - "broadcast": "192.168.0.255", - "netmask": "255.255.255.0", - "network": "192.168.0.0" - } - ], - "ipv6": [ - { - "address": "fe80::421:ab7:8eea:ae1b%en0", - "prefix": "64" - } - ], - "macaddress": "34:36:3b:cf:f2:b2", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1500", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "ansible_en1": { - "device": "en1", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "PROMISC", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "82:0f:22:2a:5f:00", - "media": "Unknown", - "media_select": "autoselect", - "media_type": "full-duplex", - "mtu": "1500", - "options": [ - "TSO4", - "TSO6", - "CHANNEL_IO" - ], - "status": "inactive", - "type": "ether" - }, - "ansible_en2": { - "device": "en2", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "PROMISC", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "82:0f:22:2a:5f:01", - "media": "Unknown", - "media_select": "autoselect", - "media_type": "full-duplex", - "mtu": "1500", - "options": [ - "TSO4", - "TSO6", - "CHANNEL_IO" - ], - "status": "inactive", - "type": "ether" - }, - "ansible_env": { - "HOME": "/Users/jamestombleson", - "LOGNAME": "jamestombleson", - "MAIL": "/var/mail/jamestombleson", - "PATH": "/usr/bin:/bin:/usr/sbin:/sbin", - "PWD": "/Users/jamestombleson", - "SHELL": "/bin/zsh", - "SHLVL": "1", - "SSH_CLIENT": "127.0.0.1 63351 22", - "SSH_CONNECTION": "127.0.0.1 63351 127.0.0.1 22", - "SSH_TTY": "/dev/ttys005", - "TERM": "xterm-256color", - "TMPDIR": "/var/folders/r3/7kdlrnn518x4653b3rk0z8000000gn/T/", - "USER": "jamestombleson", - "VERSIONER_PYTHON_VERSION": "2.7", - "_": "/usr/bin/python", - "__CF_USER_TEXT_ENCODING": "0x1F5:0x0:0x0" - }, - "ansible_facts": { - "XHC20": { - "device": "XHC20", - "flags": [], - "ipv4": [], - "ipv6": [], - "macaddress": "unknown", - "mtu": "0", - "type": "unknown" - }, - "all_ipv4_addresses": [ - "192.168.0.34" - ], - "all_ipv6_addresses": [ - "fe80::421:ab7:8eea:ae1b%en0", - "fe80::2828:d6ff:fe5e:de8%awdl0", - "fe80::2828:d6ff:fe5e:de8%llw0", - "fe80::4a0c:f6b5:f6fa:d72e%utun0", - "fe80::ede1:8366:c98:a7b1%utun1", - "fe80::583d:52ab:afc:8a7f%utun2", - "fe80::4adc:23a1:e517:35f1%utun3", - "fe80::32f7:6f62:3d81:5cba%utun4", - "fe80::ed73:d6b:d97a:cf4f%utun5", - "fe80::3636:3bff:fecf:f2b2%ipsec0", - "2607:fb90:cc1:58dc:6b1:7b3a:6b5d:fad7" - ], - "ansible_local": {}, - "apparmor": { - "status": "disabled" - }, - "architecture": "x86_64", - "awdl0": { - "device": "awdl0", - "flags": [ - "UP", - "BROADCAST", - "RUNNING", - "PROMISC", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::2828:d6ff:fe5e:de8%awdl0", - "prefix": "64", - "scope": "0x7" - } - ], - "macaddress": "2a:28:d6:5e:0d:e8", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1484", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "bridge0": { - "device": "bridge0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "82:0f:22:2a:5f:00", - "media": "Unknown", - "media_select": "Unknown", - "media_type": "unknown type", - "mtu": "1500", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "inactive", - "type": "ether" - }, - "date_time": { - "date": "2019-10-18", - "day": "18", - "epoch": "1571450977", - "hour": "19", - "iso8601": "2019-10-19T02:09:37Z", - "iso8601_basic": "20191018T190937748074", - "iso8601_basic_short": "20191018T190937", - "iso8601_micro": "2019-10-19T02:09:37.748159Z", - "minute": "09", - "month": "10", - "second": "37", - "time": "19:09:37", - "tz": "PDT", - "tz_offset": "-0700", - "weekday": "Friday", - "weekday_number": "5", - "weeknumber": "41", - "year": "2019" - }, - "default_ipv4": { - "address": "192.168.0.34", - "broadcast": "192.168.0.255", - "device": "en0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "gateway": "192.168.0.1", - "interface": "en0", - "macaddress": "34:36:3b:cf:f2:b2", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1500", - "netmask": "255.255.255.0", - "network": "192.168.0.0", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "default_ipv6": {}, - "distribution": "MacOSX", - "distribution_major_version": "10", - "distribution_release": "19.0.0", - "distribution_version": "10.15", - "dns": { - "domain": "domain", - "nameservers": [ - "192.168.0.1", - "192.168.0.1" - ] - }, - "domain": "domain", - "effective_group_id": 20, - "effective_user_id": 501, - "en0": { - "device": "en0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [ - { - "address": "192.168.0.34", - "broadcast": "192.168.0.255", - "netmask": "255.255.255.0", - "network": "192.168.0.0" - } - ], - "ipv6": [ - { - "address": "fe80::421:ab7:8eea:ae1b%en0", - "prefix": "64" - } - ], - "macaddress": "34:36:3b:cf:f2:b2", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1500", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "en1": { - "device": "en1", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "PROMISC", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "82:0f:22:2a:5f:00", - "media": "Unknown", - "media_select": "autoselect", - "media_type": "full-duplex", - "mtu": "1500", - "options": [ - "TSO4", - "TSO6", - "CHANNEL_IO" - ], - "status": "inactive", - "type": "ether" - }, - "en2": { - "device": "en2", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "PROMISC", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "82:0f:22:2a:5f:01", - "media": "Unknown", - "media_select": "autoselect", - "media_type": "full-duplex", - "mtu": "1500", - "options": [ - "TSO4", - "TSO6", - "CHANNEL_IO" - ], - "status": "inactive", - "type": "ether" - }, - "env": { - "HOME": "/Users/jamestombleson", - "LOGNAME": "jamestombleson", - "MAIL": "/var/mail/jamestombleson", - "PATH": "/usr/bin:/bin:/usr/sbin:/sbin", - "PWD": "/Users/jamestombleson", - "SHELL": "/bin/zsh", - "SHLVL": "1", - "SSH_CLIENT": "127.0.0.1 63351 22", - "SSH_CONNECTION": "127.0.0.1 63351 127.0.0.1 22", - "SSH_TTY": "/dev/ttys005", - "TERM": "xterm-256color", - "TMPDIR": "/var/folders/r3/7kdlrnn518x4653b3rk0z8000000gn/T/", - "USER": "jamestombleson", - "VERSIONER_PYTHON_VERSION": "2.7", - "_": "/usr/bin/python", - "__CF_USER_TEXT_ENCODING": "0x1F5:0x0:0x0" - }, - "fips": false, - "fqdn": "macbook-pro-4.domain", - "gather_subset": [ - "all" - ], - "gif0": { - "device": "gif0", - "flags": [ - "POINTOPOINT", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "unknown", - "mtu": "1280", - "type": "unknown" - }, - "hostname": "MacBook-Pro-4", - "interfaces": [ - "XHC20", - "awdl0", - "bridge0", - "en0", - "en1", - "en2", - "gif0", - "ipsec0", - "llw0", - "lo0", - "p2p0", - "stf0", - "utun0", - "utun1", - "utun2", - "utun3", - "utun4", - "utun5" - ], - "ipsec0": { - "device": "ipsec0", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::3636:3bff:fecf:f2b2%ipsec0", - "prefix": "64", - "scope": "0x12" - }, - { - "address": "2607:fb90:cc1:58dc:6b1:7b3a:6b5d:fad7", - "prefix": "64" - } - ], - "macaddress": "unknown", - "mtu": "50000", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "is_chroot": false, - "iscsi_iqn": "", - "kernel": "19.0.0", - "llw0": { - "device": "llw0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::2828:d6ff:fe5e:de8%llw0", - "prefix": "64", - "scope": "0x8" - } - ], - "macaddress": "2a:28:d6:5e:0d:e8", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1500", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "lo0": { - "device": "lo0", - "flags": [ - "UP", - "LOOPBACK", - "RUNNING", - "MULTICAST" - ], - "ipv4": [ - { - "address": "127.0.0.1", - "broadcast": "127.255.255.255", - "netmask": "255.0.0.0", - "network": "127.0.0.0" - } - ], - "ipv6": [ - { - "address": "::1", - "prefix": "128" - }, - { - "address": "fe80::1%lo0", - "prefix": "64", - "scope": "0x1" - } - ], - "macaddress": "unknown", - "mtu": "16384", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "loopback" - }, - "lsb": {}, - "machine": "x86_64", - "memfree_mb": 94, - "memtotal_mb": 16384, - "model": "MacBookPro11,2", - "module_setup": true, - "nodename": "MacBook-Pro-4.domain", - "os_family": "Darwin", - "osrevision": "199506", - "osversion": "19A583", - "p2p0": { - "device": "p2p0", - "flags": [ - "UP", - "BROADCAST", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "06:36:3b:cf:f2:b2", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "2304", - "options": [ - "CHANNEL_IO" - ], - "status": "inactive", - "type": "ether" - }, - "pkg_mgr": "homebrew", - "processor": "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz", - "processor_cores": "4", - "processor_vcpus": "8", - "python": { - "executable": "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python", - "has_sslcontext": true, - "type": "CPython", - "version": { - "major": 2, - "micro": 16, - "minor": 7, - "releaselevel": "final", - "serial": 0 - }, - "version_info": [ - 2, - 7, - 16, - "final", - 0 - ] - }, - "python_version": "2.7.16", - "real_group_id": 20, - "real_user_id": 501, - "selinux": { - "status": "Missing selinux Python library" - }, - "selinux_python_present": false, - "service_mgr": "launchd", - "ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBANaOKYJdhj0tZBxpolab3EOj5QIOPtKRCcuSopZyEHnqROCHsPSfITy9XsDCAuFpdnkWmyPWE6Phix4BHFq3X+ArP0hHZWxl8zF5nRss25WgtJg/ntJJ3kK8F7ldkqd89HISMnwkCJTp99842x0pFfPn5/hDJfStGXnTcABj/GPnAAAAFQCXBgShNVEh9ddQR32k1I4nxojRZQAAAIBhf04evMhdXIjhD8swgtp8DJkaZ0Nd7eXcJIiuSOdHwtffaBH1llL2L0vELrvLtvJSTEpnh000mqlRoX8C0wSC20SoWV5ul4kxvdmliXvO2BhG0XXfUOvqPxt9+W1KDv+9xvbembAfJvWJ1VDUJb/tXRpw+/Hz4pviuKLQ9CPR/wAAAIBIy04P3TZ7h7UN+mYhld+YKR2ei6HAGooF4uaGxPh1xzZtLUyidFg3+iPU0AMAZfHzB01ZLMqsJSXutZnJ5twmmyMef55c+YZpw9aBMCWZzhbrPoowoly86c6Aq6zwEiyiCeMrdnXcTouh12MpmfzgfT7j7LiyZsLtvQQVCp6Y8w==", - "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLkhDLo+ofDRAYNdnntLko5AFFw5yfeW15JOtfFsq04LvBDT6ZvEx8rRLiCSnaXMdDjlvj/gU6LYJTWM+5MPeKc=", - "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIAs4JsI/X77ORabsqAt2Kv/LKXtlvXvYi6L11wF6sLSG", - "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDFMVMTbD4rv09xtTpJPIGjitvK0Ell5m+BGUjP3q8c+CloxwVmHhx3MDLz4CnAp+FpqfZRO2nxbPgbw+FAkhlPy08IWKbO9Ttm31tRDQT87P4dcF59lfWJ0lt9z0ZW81GeztH0pQEB/ug9LYgJjUSBlqKPfwNDbmeWZzqMnCfXpRzyFgNiNo/uFfpe/flnpjP2pS+V3qPD4hO5SAAi7oPSLW8pTeQKU/luPQldiEKNcu43nqWiFFJaxIQ5jhj1DmCY2C73aXeeAW95gDay1T/C6XqsOaAAxlFi6rp217MdCZqz3ut+MHnYYARrp3cqL4RSg4B4Sa4Fj1FFevxYZv7f", - "stf0": { - "device": "stf0", - "flags": [], - "ipv4": [], - "ipv6": [], - "macaddress": "unknown", - "mtu": "1280", - "type": "unknown" - }, - "system": "Darwin", - "user_dir": "/Users/jamestombleson", - "user_gecos": "James Tombleson", - "user_gid": 20, - "user_id": "jamestombleson", - "user_shell": "/bin/zsh", - "user_uid": 501, - "userspace_architecture": "x86_64", - "userspace_bits": "64", - "utun0": { - "device": "utun0", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::4a0c:f6b5:f6fa:d72e%utun0", - "prefix": "64", - "scope": "0xc" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "utun1": { - "device": "utun1", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::ede1:8366:c98:a7b1%utun1", - "prefix": "64", - "scope": "0xd" - } - ], - "macaddress": "unknown", - "mtu": "2000", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "utun2": { - "device": "utun2", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::583d:52ab:afc:8a7f%utun2", - "prefix": "64", - "scope": "0xe" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "utun3": { - "device": "utun3", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::4adc:23a1:e517:35f1%utun3", - "prefix": "64", - "scope": "0xf" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "utun4": { - "device": "utun4", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::32f7:6f62:3d81:5cba%utun4", - "prefix": "64", - "scope": "0x10" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "utun5": { - "device": "utun5", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::ed73:d6b:d97a:cf4f%utun5", - "prefix": "64", - "scope": "0x11" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "virtualization_role": "", - "virtualization_type": "" - }, - "ansible_fips": false, - "ansible_forks": 5, - "ansible_fqdn": "macbook-pro-4.domain", - "ansible_gif0": { - "device": "gif0", - "flags": [ - "POINTOPOINT", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "unknown", - "mtu": "1280", - "type": "unknown" - }, - "ansible_hostname": "MacBook-Pro-4", - "ansible_interfaces": [ - "XHC20", - "awdl0", - "bridge0", - "en0", - "en1", - "en2", - "gif0", - "ipsec0", - "llw0", - "lo0", - "p2p0", - "stf0", - "utun0", - "utun1", - "utun2", - "utun3", - "utun4", - "utun5" - ], - "ansible_inventory_sources": [ - "/Users/jamestombleson/Documents/GitHub/Ansible/hosts" - ], - "ansible_ipsec0": { - "device": "ipsec0", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::3636:3bff:fecf:f2b2%ipsec0", - "prefix": "64", - "scope": "0x12" - }, - { - "address": "2607:fb90:cc1:58dc:6b1:7b3a:6b5d:fad7", - "prefix": "64" - } - ], - "macaddress": "unknown", - "mtu": "50000", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_is_chroot": false, - "ansible_iscsi_iqn": "", - "ansible_kernel": "19.0.0", - "ansible_llw0": { - "device": "llw0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::2828:d6ff:fe5e:de8%llw0", - "prefix": "64", - "scope": "0x8" - } - ], - "macaddress": "2a:28:d6:5e:0d:e8", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1500", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "ansible_lo0": { - "device": "lo0", - "flags": [ - "UP", - "LOOPBACK", - "RUNNING", - "MULTICAST" - ], - "ipv4": [ - { - "address": "127.0.0.1", - "broadcast": "127.255.255.255", - "netmask": "255.0.0.0", - "network": "127.0.0.0" - } - ], - "ipv6": [ - { - "address": "::1", - "prefix": "128" - }, - { - "address": "fe80::1%lo0", - "prefix": "64", - "scope": "0x1" - } - ], - "macaddress": "unknown", - "mtu": "16384", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "loopback" - }, - "ansible_local": {}, - "ansible_lsb": {}, - "ansible_machine": "x86_64", - "ansible_memfree_mb": 94, - "ansible_memtotal_mb": 16384, - "ansible_model": "MacBookPro11,2", - "ansible_nodename": "MacBook-Pro-4.domain", - "ansible_os_family": "Darwin", - "ansible_osrevision": "199506", - "ansible_osversion": "19A583", - "ansible_p2p0": { - "device": "p2p0", - "flags": [ - "UP", - "BROADCAST", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "06:36:3b:cf:f2:b2", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "2304", - "options": [ - "CHANNEL_IO" - ], - "status": "inactive", - "type": "ether" - }, - "ansible_password": "Pm98cdLm38iq", - "ansible_pkg_mgr": "homebrew", - "ansible_playbook_python": "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python", - "ansible_processor": "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz", - "ansible_processor_cores": "4", - "ansible_processor_vcpus": "8", - "ansible_python": { - "executable": "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python", - "has_sslcontext": true, - "type": "CPython", - "version": { - "major": 2, - "micro": 16, - "minor": 7, - "releaselevel": "final", - "serial": 0 - }, - "version_info": [ - 2, - 7, - 16, - "final", - 0 - ] - }, - "ansible_python_version": "2.7.16", - "ansible_real_group_id": 20, - "ansible_real_user_id": 501, - "ansible_run_tags": [ - "all" - ], - "ansible_selinux": { - "status": "Missing selinux Python library" - }, - "ansible_selinux_python_present": false, - "ansible_service_mgr": "launchd", - "ansible_skip_tags": [], - "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBANaOKYJdhj0tZBxpolab3EOj5QIOPtKRCcuSopZyEHnqROCHsPSfITy9XsDCAuFpdnkWmyPWE6Phix4BHFq3X+ArP0hHZWxl8zF5nRss25WgtJg/ntJJ3kK8F7ldkqd89HISMnwkCJTp99842x0pFfPn5/hDJfStGXnTcABj/GPnAAAAFQCXBgShNVEh9ddQR32k1I4nxojRZQAAAIBhf04evMhdXIjhD8swgtp8DJkaZ0Nd7eXcJIiuSOdHwtffaBH1llL2L0vELrvLtvJSTEpnh000mqlRoX8C0wSC20SoWV5ul4kxvdmliXvO2BhG0XXfUOvqPxt9+W1KDv+9xvbembAfJvWJ1VDUJb/tXRpw+/Hz4pviuKLQ9CPR/wAAAIBIy04P3TZ7h7UN+mYhld+YKR2ei6HAGooF4uaGxPh1xzZtLUyidFg3+iPU0AMAZfHzB01ZLMqsJSXutZnJ5twmmyMef55c+YZpw9aBMCWZzhbrPoowoly86c6Aq6zwEiyiCeMrdnXcTouh12MpmfzgfT7j7LiyZsLtvQQVCp6Y8w==", - "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLkhDLo+ofDRAYNdnntLko5AFFw5yfeW15JOtfFsq04LvBDT6ZvEx8rRLiCSnaXMdDjlvj/gU6LYJTWM+5MPeKc=", - "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIAs4JsI/X77ORabsqAt2Kv/LKXtlvXvYi6L11wF6sLSG", - "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDFMVMTbD4rv09xtTpJPIGjitvK0Ell5m+BGUjP3q8c+CloxwVmHhx3MDLz4CnAp+FpqfZRO2nxbPgbw+FAkhlPy08IWKbO9Ttm31tRDQT87P4dcF59lfWJ0lt9z0ZW81GeztH0pQEB/ug9LYgJjUSBlqKPfwNDbmeWZzqMnCfXpRzyFgNiNo/uFfpe/flnpjP2pS+V3qPD4hO5SAAi7oPSLW8pTeQKU/luPQldiEKNcu43nqWiFFJaxIQ5jhj1DmCY2C73aXeeAW95gDay1T/C6XqsOaAAxlFi6rp217MdCZqz3ut+MHnYYARrp3cqL4RSg4B4Sa4Fj1FFevxYZv7f", - "ansible_stf0": { - "device": "stf0", - "flags": [], - "ipv4": [], - "ipv6": [], - "macaddress": "unknown", - "mtu": "1280", - "type": "unknown" - }, - "ansible_system": "Darwin", - "ansible_user": "jamestombleson", - "ansible_user_dir": "/Users/jamestombleson", - "ansible_user_gecos": "James Tombleson", - "ansible_user_gid": 20, - "ansible_user_id": "jamestombleson", - "ansible_user_shell": "/bin/zsh", - "ansible_user_uid": 501, - "ansible_userspace_architecture": "x86_64", - "ansible_userspace_bits": "64", - "ansible_utun0": { - "device": "utun0", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::4a0c:f6b5:f6fa:d72e%utun0", - "prefix": "64", - "scope": "0xc" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_utun1": { - "device": "utun1", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::ede1:8366:c98:a7b1%utun1", - "prefix": "64", - "scope": "0xd" - } - ], - "macaddress": "unknown", - "mtu": "2000", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_utun2": { - "device": "utun2", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::583d:52ab:afc:8a7f%utun2", - "prefix": "64", - "scope": "0xe" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_utun3": { - "device": "utun3", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::4adc:23a1:e517:35f1%utun3", - "prefix": "64", - "scope": "0xf" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_utun4": { - "device": "utun4", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::32f7:6f62:3d81:5cba%utun4", - "prefix": "64", - "scope": "0x10" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_utun5": { - "device": "utun5", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::ed73:d6b:d97a:cf4f%utun5", - "prefix": "64", - "scope": "0x11" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_verbosity": 0, - "ansible_version": { - "full": "2.7.9", - "major": 2, - "minor": 7, - "revision": 9, - "string": "2.7.9" - }, - "ansible_virtualization_role": "", - "ansible_virtualization_type": "", - "gather_subset": [ - "all" - ], - "group_names": [ - "osx" - ], - "groups": { - "all": [ - "192.168.0.60", - "192.168.0.2", - "127.0.0.1" - ], - "elastic": [ - "192.168.0.60" - ], - "jenkins": [ - "192.168.0.60" - ], - "linux": [ - "192.168.0.60" - ], - "osx": [ - "127.0.0.1" - ], - "sensu_masters": [ - "192.168.0.60" - ], - "sensu_rabbitmq_servers": [ - "192.168.0.60" - ], - "sensu_redis_servers": [ - "192.168.0.60" - ], - "ungrouped": [], - "windows": [ - "192.168.0.2" - ] - }, - "inventory_dir": "/Users/jamestombleson/Documents/GitHub/Ansible", - "inventory_file": "/Users/jamestombleson/Documents/GitHub/Ansible/hosts", - "inventory_hostname": "127.0.0.1", - "inventory_hostname_short": "127", - "module_setup": true, - "omit": "__omit_place_holder__be3b83228b8f7956e31f1e458503db2cc38e63fc", - "playbook_dir": "/Users/jamestombleson/Documents/GitHub/Ansible/playbook" - }, - "192.168.0.2": { - "ansible_check_mode": false, - "ansible_connection": "winrm", - "ansible_diff_mode": false, - "ansible_facts": {}, - "ansible_forks": 5, - "ansible_inventory_sources": [ - "/Users/jamestombleson/Documents/GitHub/Ansible/hosts" - ], - "ansible_password": "", - "ansible_playbook_python": "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python", - "ansible_port": 5986, - "ansible_run_tags": [ - "all" - ], - "ansible_skip_tags": [], - "ansible_user": "ansible", - "ansible_verbosity": 0, - "ansible_version": { - "full": "2.7.9", - "major": 2, - "minor": 7, - "revision": 9, - "string": "2.7.9" - }, - "ansible_winrm_scheme": "https", - "ansible_winrm_server_cert_validation": "ignore", - "group_names": [ - "windows" - ], - "groups": { - "all": [ - "192.168.0.60", - "192.168.0.2", - "127.0.0.1" - ], - "elastic": [ - "192.168.0.60" - ], - "jenkins": [ - "192.168.0.60" - ], - "linux": [ - "192.168.0.60" - ], - "osx": [ - "127.0.0.1" - ], - "sensu_masters": [ - "192.168.0.60" - ], - "sensu_rabbitmq_servers": [ - "192.168.0.60" - ], - "sensu_redis_servers": [ - "192.168.0.60" - ], - "ungrouped": [], - "windows": [ - "192.168.0.2" - ] - }, - "inventory_dir": "/Users/jamestombleson/Documents/GitHub/Ansible", - "inventory_file": "/Users/jamestombleson/Documents/GitHub/Ansible/hosts", - "inventory_hostname": "192.168.0.2", - "inventory_hostname_short": "192", - "omit": "__omit_place_holder__be3b83228b8f7956e31f1e458503db2cc38e63fc", - "playbook_dir": "/Users/jamestombleson/Documents/GitHub/Ansible/playbook" - }, - "192.168.0.60": { - "ansible_become_method": "sudo", - "ansible_become_pass": "Lm38iq", - "ansible_check_mode": false, - "ansible_connection": "ssh", - "ansible_diff_mode": false, - "ansible_facts": {}, - "ansible_forks": 5, - "ansible_inventory_sources": [ - "/Users/jamestombleson/Documents/GitHub/Ansible/hosts" - ], - "ansible_password": "Lm38iq", - "ansible_playbook_python": "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python", - "ansible_python_interpreter": "/usr/bin/python3", - "ansible_run_tags": [ - "all" - ], - "ansible_skip_tags": [], - "ansible_user": "ansible", - "ansible_verbosity": 0, - "ansible_version": { - "full": "2.7.9", - "major": 2, - "minor": 7, - "revision": 9, - "string": "2.7.9" - }, - "group_names": [ - "elastic", - "jenkins", - "linux", - "sensu_masters", - "sensu_rabbitmq_servers", - "sensu_redis_servers" - ], - "groups": { - "all": [ - "192.168.0.60", - "192.168.0.2", - "127.0.0.1" - ], - "elastic": [ - "192.168.0.60" - ], - "jenkins": [ - "192.168.0.60" - ], - "linux": [ - "192.168.0.60" - ], - "osx": [ - "127.0.0.1" - ], - "sensu_masters": [ - "192.168.0.60" - ], - "sensu_rabbitmq_servers": [ - "192.168.0.60" - ], - "sensu_redis_servers": [ - "192.168.0.60" - ], - "ungrouped": [], - "windows": [ - "192.168.0.2" - ] - }, - "inventory_dir": "/Users/jamestombleson/Documents/GitHub/Ansible", - "inventory_file": "/Users/jamestombleson/Documents/GitHub/Ansible/hosts", - "inventory_hostname": "192.168.0.60", - "inventory_hostname_short": "192", - "omit": "__omit_place_holder__be3b83228b8f7956e31f1e458503db2cc38e63fc", - "playbook_dir": "/Users/jamestombleson/Documents/GitHub/Ansible/playbook" - } - }, - "inventory_dir": "/Users/jamestombleson/Documents/GitHub/Ansible", - "inventory_file": "/Users/jamestombleson/Documents/GitHub/Ansible/hosts", - "inventory_hostname": "127.0.0.1", - "inventory_hostname_short": "127", - "module_setup": true, - "omit": "__omit_place_holder__be3b83228b8f7956e31f1e458503db2cc38e63fc", - "play_hosts": [ - "127.0.0.1" - ], - "playbook_dir": "/Users/jamestombleson/Documents/GitHub/Ansible/playbook", - "role_names": [] -} - -Environment Variables ("environment"): --------------------------------- -[] - -GROUP NAMES Variables ("group_names"): --------------------------------- -[ - "osx" -] - -GROUPS Variables ("groups"): --------------------------------- -{ - "all": [ - "192.168.0.60", - "192.168.0.2", - "127.0.0.1" - ], - "elastic": [ - "192.168.0.60" - ], - "jenkins": [ - "192.168.0.60" - ], - "linux": [ - "192.168.0.60" - ], - "osx": [ - "127.0.0.1" - ], - "sensu_masters": [ - "192.168.0.60" - ], - "sensu_rabbitmq_servers": [ - "192.168.0.60" - ], - "sensu_redis_servers": [ - "192.168.0.60" - ], - "ungrouped": [], - "windows": [ - "192.168.0.2" - ] -} - -HOST Variables ("hostvars"): --------------------------------- -{ - "127.0.0.1": { - "ansible_XHC20": { - "device": "XHC20", - "flags": [], - "ipv4": [], - "ipv6": [], - "macaddress": "unknown", - "mtu": "0", - "type": "unknown" - }, - "ansible_all_ipv4_addresses": [ - "192.168.0.34" - ], - "ansible_all_ipv6_addresses": [ - "fe80::421:ab7:8eea:ae1b%en0", - "fe80::2828:d6ff:fe5e:de8%awdl0", - "fe80::2828:d6ff:fe5e:de8%llw0", - "fe80::4a0c:f6b5:f6fa:d72e%utun0", - "fe80::ede1:8366:c98:a7b1%utun1", - "fe80::583d:52ab:afc:8a7f%utun2", - "fe80::4adc:23a1:e517:35f1%utun3", - "fe80::32f7:6f62:3d81:5cba%utun4", - "fe80::ed73:d6b:d97a:cf4f%utun5", - "fe80::3636:3bff:fecf:f2b2%ipsec0", - "2607:fb90:cc1:58dc:6b1:7b3a:6b5d:fad7" - ], - "ansible_apparmor": { - "status": "disabled" - }, - "ansible_architecture": "x86_64", - "ansible_awdl0": { - "device": "awdl0", - "flags": [ - "UP", - "BROADCAST", - "RUNNING", - "PROMISC", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::2828:d6ff:fe5e:de8%awdl0", - "prefix": "64", - "scope": "0x7" - } - ], - "macaddress": "2a:28:d6:5e:0d:e8", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1484", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "ansible_bridge0": { - "device": "bridge0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "82:0f:22:2a:5f:00", - "media": "Unknown", - "media_select": "Unknown", - "media_type": "unknown type", - "mtu": "1500", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "inactive", - "type": "ether" - }, - "ansible_check_mode": false, - "ansible_date_time": { - "date": "2019-10-18", - "day": "18", - "epoch": "1571450977", - "hour": "19", - "iso8601": "2019-10-19T02:09:37Z", - "iso8601_basic": "20191018T190937748074", - "iso8601_basic_short": "20191018T190937", - "iso8601_micro": "2019-10-19T02:09:37.748159Z", - "minute": "09", - "month": "10", - "second": "37", - "time": "19:09:37", - "tz": "PDT", - "tz_offset": "-0700", - "weekday": "Friday", - "weekday_number": "5", - "weeknumber": "41", - "year": "2019" - }, - "ansible_default_ipv4": { - "address": "192.168.0.34", - "broadcast": "192.168.0.255", - "device": "en0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "gateway": "192.168.0.1", - "interface": "en0", - "macaddress": "34:36:3b:cf:f2:b2", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1500", - "netmask": "255.255.255.0", - "network": "192.168.0.0", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "ansible_default_ipv6": {}, - "ansible_diff_mode": false, - "ansible_distribution": "MacOSX", - "ansible_distribution_major_version": "10", - "ansible_distribution_release": "19.0.0", - "ansible_distribution_version": "10.15", - "ansible_dns": { - "domain": "domain", - "nameservers": [ - "192.168.0.1", - "192.168.0.1" - ] - }, - "ansible_domain": "domain", - "ansible_effective_group_id": 20, - "ansible_effective_user_id": 501, - "ansible_en0": { - "device": "en0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [ - { - "address": "192.168.0.34", - "broadcast": "192.168.0.255", - "netmask": "255.255.255.0", - "network": "192.168.0.0" - } - ], - "ipv6": [ - { - "address": "fe80::421:ab7:8eea:ae1b%en0", - "prefix": "64" - } - ], - "macaddress": "34:36:3b:cf:f2:b2", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1500", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "ansible_en1": { - "device": "en1", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "PROMISC", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "82:0f:22:2a:5f:00", - "media": "Unknown", - "media_select": "autoselect", - "media_type": "full-duplex", - "mtu": "1500", - "options": [ - "TSO4", - "TSO6", - "CHANNEL_IO" - ], - "status": "inactive", - "type": "ether" - }, - "ansible_en2": { - "device": "en2", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "PROMISC", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "82:0f:22:2a:5f:01", - "media": "Unknown", - "media_select": "autoselect", - "media_type": "full-duplex", - "mtu": "1500", - "options": [ - "TSO4", - "TSO6", - "CHANNEL_IO" - ], - "status": "inactive", - "type": "ether" - }, - "ansible_env": { - "HOME": "/Users/jamestombleson", - "LOGNAME": "jamestombleson", - "MAIL": "/var/mail/jamestombleson", - "PATH": "/usr/bin:/bin:/usr/sbin:/sbin", - "PWD": "/Users/jamestombleson", - "SHELL": "/bin/zsh", - "SHLVL": "1", - "SSH_CLIENT": "127.0.0.1 63351 22", - "SSH_CONNECTION": "127.0.0.1 63351 127.0.0.1 22", - "SSH_TTY": "/dev/ttys005", - "TERM": "xterm-256color", - "TMPDIR": "/var/folders/r3/7kdlrnn518x4653b3rk0z8000000gn/T/", - "USER": "jamestombleson", - "VERSIONER_PYTHON_VERSION": "2.7", - "_": "/usr/bin/python", - "__CF_USER_TEXT_ENCODING": "0x1F5:0x0:0x0" - }, - "ansible_facts": { - "XHC20": { - "device": "XHC20", - "flags": [], - "ipv4": [], - "ipv6": [], - "macaddress": "unknown", - "mtu": "0", - "type": "unknown" - }, - "all_ipv4_addresses": [ - "192.168.0.34" - ], - "all_ipv6_addresses": [ - "fe80::421:ab7:8eea:ae1b%en0", - "fe80::2828:d6ff:fe5e:de8%awdl0", - "fe80::2828:d6ff:fe5e:de8%llw0", - "fe80::4a0c:f6b5:f6fa:d72e%utun0", - "fe80::ede1:8366:c98:a7b1%utun1", - "fe80::583d:52ab:afc:8a7f%utun2", - "fe80::4adc:23a1:e517:35f1%utun3", - "fe80::32f7:6f62:3d81:5cba%utun4", - "fe80::ed73:d6b:d97a:cf4f%utun5", - "fe80::3636:3bff:fecf:f2b2%ipsec0", - "2607:fb90:cc1:58dc:6b1:7b3a:6b5d:fad7" - ], - "ansible_local": {}, - "apparmor": { - "status": "disabled" - }, - "architecture": "x86_64", - "awdl0": { - "device": "awdl0", - "flags": [ - "UP", - "BROADCAST", - "RUNNING", - "PROMISC", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::2828:d6ff:fe5e:de8%awdl0", - "prefix": "64", - "scope": "0x7" - } - ], - "macaddress": "2a:28:d6:5e:0d:e8", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1484", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "bridge0": { - "device": "bridge0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "82:0f:22:2a:5f:00", - "media": "Unknown", - "media_select": "Unknown", - "media_type": "unknown type", - "mtu": "1500", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "inactive", - "type": "ether" - }, - "date_time": { - "date": "2019-10-18", - "day": "18", - "epoch": "1571450977", - "hour": "19", - "iso8601": "2019-10-19T02:09:37Z", - "iso8601_basic": "20191018T190937748074", - "iso8601_basic_short": "20191018T190937", - "iso8601_micro": "2019-10-19T02:09:37.748159Z", - "minute": "09", - "month": "10", - "second": "37", - "time": "19:09:37", - "tz": "PDT", - "tz_offset": "-0700", - "weekday": "Friday", - "weekday_number": "5", - "weeknumber": "41", - "year": "2019" - }, - "default_ipv4": { - "address": "192.168.0.34", - "broadcast": "192.168.0.255", - "device": "en0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "gateway": "192.168.0.1", - "interface": "en0", - "macaddress": "34:36:3b:cf:f2:b2", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1500", - "netmask": "255.255.255.0", - "network": "192.168.0.0", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "default_ipv6": {}, - "distribution": "MacOSX", - "distribution_major_version": "10", - "distribution_release": "19.0.0", - "distribution_version": "10.15", - "dns": { - "domain": "domain", - "nameservers": [ - "192.168.0.1", - "192.168.0.1" - ] - }, - "domain": "domain", - "effective_group_id": 20, - "effective_user_id": 501, - "en0": { - "device": "en0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [ - { - "address": "192.168.0.34", - "broadcast": "192.168.0.255", - "netmask": "255.255.255.0", - "network": "192.168.0.0" - } - ], - "ipv6": [ - { - "address": "fe80::421:ab7:8eea:ae1b%en0", - "prefix": "64" - } - ], - "macaddress": "34:36:3b:cf:f2:b2", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1500", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "en1": { - "device": "en1", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "PROMISC", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "82:0f:22:2a:5f:00", - "media": "Unknown", - "media_select": "autoselect", - "media_type": "full-duplex", - "mtu": "1500", - "options": [ - "TSO4", - "TSO6", - "CHANNEL_IO" - ], - "status": "inactive", - "type": "ether" - }, - "en2": { - "device": "en2", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "PROMISC", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "82:0f:22:2a:5f:01", - "media": "Unknown", - "media_select": "autoselect", - "media_type": "full-duplex", - "mtu": "1500", - "options": [ - "TSO4", - "TSO6", - "CHANNEL_IO" - ], - "status": "inactive", - "type": "ether" - }, - "env": { - "HOME": "/Users/jamestombleson", - "LOGNAME": "jamestombleson", - "MAIL": "/var/mail/jamestombleson", - "PATH": "/usr/bin:/bin:/usr/sbin:/sbin", - "PWD": "/Users/jamestombleson", - "SHELL": "/bin/zsh", - "SHLVL": "1", - "SSH_CLIENT": "127.0.0.1 63351 22", - "SSH_CONNECTION": "127.0.0.1 63351 127.0.0.1 22", - "SSH_TTY": "/dev/ttys005", - "TERM": "xterm-256color", - "TMPDIR": "/var/folders/r3/7kdlrnn518x4653b3rk0z8000000gn/T/", - "USER": "jamestombleson", - "VERSIONER_PYTHON_VERSION": "2.7", - "_": "/usr/bin/python", - "__CF_USER_TEXT_ENCODING": "0x1F5:0x0:0x0" - }, - "fips": false, - "fqdn": "macbook-pro-4.domain", - "gather_subset": [ - "all" - ], - "gif0": { - "device": "gif0", - "flags": [ - "POINTOPOINT", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "unknown", - "mtu": "1280", - "type": "unknown" - }, - "hostname": "MacBook-Pro-4", - "interfaces": [ - "XHC20", - "awdl0", - "bridge0", - "en0", - "en1", - "en2", - "gif0", - "ipsec0", - "llw0", - "lo0", - "p2p0", - "stf0", - "utun0", - "utun1", - "utun2", - "utun3", - "utun4", - "utun5" - ], - "ipsec0": { - "device": "ipsec0", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::3636:3bff:fecf:f2b2%ipsec0", - "prefix": "64", - "scope": "0x12" - }, - { - "address": "2607:fb90:cc1:58dc:6b1:7b3a:6b5d:fad7", - "prefix": "64" - } - ], - "macaddress": "unknown", - "mtu": "50000", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "is_chroot": false, - "iscsi_iqn": "", - "kernel": "19.0.0", - "llw0": { - "device": "llw0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::2828:d6ff:fe5e:de8%llw0", - "prefix": "64", - "scope": "0x8" - } - ], - "macaddress": "2a:28:d6:5e:0d:e8", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1500", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "lo0": { - "device": "lo0", - "flags": [ - "UP", - "LOOPBACK", - "RUNNING", - "MULTICAST" - ], - "ipv4": [ - { - "address": "127.0.0.1", - "broadcast": "127.255.255.255", - "netmask": "255.0.0.0", - "network": "127.0.0.0" - } - ], - "ipv6": [ - { - "address": "::1", - "prefix": "128" - }, - { - "address": "fe80::1%lo0", - "prefix": "64", - "scope": "0x1" - } - ], - "macaddress": "unknown", - "mtu": "16384", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "loopback" - }, - "lsb": {}, - "machine": "x86_64", - "memfree_mb": 94, - "memtotal_mb": 16384, - "model": "MacBookPro11,2", - "module_setup": true, - "nodename": "MacBook-Pro-4.domain", - "os_family": "Darwin", - "osrevision": "199506", - "osversion": "19A583", - "p2p0": { - "device": "p2p0", - "flags": [ - "UP", - "BROADCAST", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "06:36:3b:cf:f2:b2", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "2304", - "options": [ - "CHANNEL_IO" - ], - "status": "inactive", - "type": "ether" - }, - "pkg_mgr": "homebrew", - "processor": "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz", - "processor_cores": "4", - "processor_vcpus": "8", - "python": { - "executable": "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python", - "has_sslcontext": true, - "type": "CPython", - "version": { - "major": 2, - "micro": 16, - "minor": 7, - "releaselevel": "final", - "serial": 0 - }, - "version_info": [ - 2, - 7, - 16, - "final", - 0 - ] - }, - "python_version": "2.7.16", - "real_group_id": 20, - "real_user_id": 501, - "selinux": { - "status": "Missing selinux Python library" - }, - "selinux_python_present": false, - "service_mgr": "launchd", - "ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBANaOKYJdhj0tZBxpolab3EOj5QIOPtKRCcuSopZyEHnqROCHsPSfITy9XsDCAuFpdnkWmyPWE6Phix4BHFq3X+ArP0hHZWxl8zF5nRss25WgtJg/ntJJ3kK8F7ldkqd89HISMnwkCJTp99842x0pFfPn5/hDJfStGXnTcABj/GPnAAAAFQCXBgShNVEh9ddQR32k1I4nxojRZQAAAIBhf04evMhdXIjhD8swgtp8DJkaZ0Nd7eXcJIiuSOdHwtffaBH1llL2L0vELrvLtvJSTEpnh000mqlRoX8C0wSC20SoWV5ul4kxvdmliXvO2BhG0XXfUOvqPxt9+W1KDv+9xvbembAfJvWJ1VDUJb/tXRpw+/Hz4pviuKLQ9CPR/wAAAIBIy04P3TZ7h7UN+mYhld+YKR2ei6HAGooF4uaGxPh1xzZtLUyidFg3+iPU0AMAZfHzB01ZLMqsJSXutZnJ5twmmyMef55c+YZpw9aBMCWZzhbrPoowoly86c6Aq6zwEiyiCeMrdnXcTouh12MpmfzgfT7j7LiyZsLtvQQVCp6Y8w==", - "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLkhDLo+ofDRAYNdnntLko5AFFw5yfeW15JOtfFsq04LvBDT6ZvEx8rRLiCSnaXMdDjlvj/gU6LYJTWM+5MPeKc=", - "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIAs4JsI/X77ORabsqAt2Kv/LKXtlvXvYi6L11wF6sLSG", - "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDFMVMTbD4rv09xtTpJPIGjitvK0Ell5m+BGUjP3q8c+CloxwVmHhx3MDLz4CnAp+FpqfZRO2nxbPgbw+FAkhlPy08IWKbO9Ttm31tRDQT87P4dcF59lfWJ0lt9z0ZW81GeztH0pQEB/ug9LYgJjUSBlqKPfwNDbmeWZzqMnCfXpRzyFgNiNo/uFfpe/flnpjP2pS+V3qPD4hO5SAAi7oPSLW8pTeQKU/luPQldiEKNcu43nqWiFFJaxIQ5jhj1DmCY2C73aXeeAW95gDay1T/C6XqsOaAAxlFi6rp217MdCZqz3ut+MHnYYARrp3cqL4RSg4B4Sa4Fj1FFevxYZv7f", - "stf0": { - "device": "stf0", - "flags": [], - "ipv4": [], - "ipv6": [], - "macaddress": "unknown", - "mtu": "1280", - "type": "unknown" - }, - "system": "Darwin", - "user_dir": "/Users/jamestombleson", - "user_gecos": "James Tombleson", - "user_gid": 20, - "user_id": "jamestombleson", - "user_shell": "/bin/zsh", - "user_uid": 501, - "userspace_architecture": "x86_64", - "userspace_bits": "64", - "utun0": { - "device": "utun0", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::4a0c:f6b5:f6fa:d72e%utun0", - "prefix": "64", - "scope": "0xc" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "utun1": { - "device": "utun1", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::ede1:8366:c98:a7b1%utun1", - "prefix": "64", - "scope": "0xd" - } - ], - "macaddress": "unknown", - "mtu": "2000", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "utun2": { - "device": "utun2", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::583d:52ab:afc:8a7f%utun2", - "prefix": "64", - "scope": "0xe" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "utun3": { - "device": "utun3", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::4adc:23a1:e517:35f1%utun3", - "prefix": "64", - "scope": "0xf" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "utun4": { - "device": "utun4", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::32f7:6f62:3d81:5cba%utun4", - "prefix": "64", - "scope": "0x10" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "utun5": { - "device": "utun5", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::ed73:d6b:d97a:cf4f%utun5", - "prefix": "64", - "scope": "0x11" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "virtualization_role": "", - "virtualization_type": "" - }, - "ansible_fips": false, - "ansible_forks": 5, - "ansible_fqdn": "macbook-pro-4.domain", - "ansible_gif0": { - "device": "gif0", - "flags": [ - "POINTOPOINT", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "unknown", - "mtu": "1280", - "type": "unknown" - }, - "ansible_hostname": "MacBook-Pro-4", - "ansible_interfaces": [ - "XHC20", - "awdl0", - "bridge0", - "en0", - "en1", - "en2", - "gif0", - "ipsec0", - "llw0", - "lo0", - "p2p0", - "stf0", - "utun0", - "utun1", - "utun2", - "utun3", - "utun4", - "utun5" - ], - "ansible_inventory_sources": [ - "/Users/jamestombleson/Documents/GitHub/Ansible/hosts" - ], - "ansible_ipsec0": { - "device": "ipsec0", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::3636:3bff:fecf:f2b2%ipsec0", - "prefix": "64", - "scope": "0x12" - }, - { - "address": "2607:fb90:cc1:58dc:6b1:7b3a:6b5d:fad7", - "prefix": "64" - } - ], - "macaddress": "unknown", - "mtu": "50000", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_is_chroot": false, - "ansible_iscsi_iqn": "", - "ansible_kernel": "19.0.0", - "ansible_llw0": { - "device": "llw0", - "flags": [ - "UP", - "BROADCAST", - "SMART", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::2828:d6ff:fe5e:de8%llw0", - "prefix": "64", - "scope": "0x8" - } - ], - "macaddress": "2a:28:d6:5e:0d:e8", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "1500", - "options": [ - "PERFORMNUD", - "DAD" - ], - "status": "active", - "type": "ether" - }, - "ansible_lo0": { - "device": "lo0", - "flags": [ - "UP", - "LOOPBACK", - "RUNNING", - "MULTICAST" - ], - "ipv4": [ - { - "address": "127.0.0.1", - "broadcast": "127.255.255.255", - "netmask": "255.0.0.0", - "network": "127.0.0.0" - } - ], - "ipv6": [ - { - "address": "::1", - "prefix": "128" - }, - { - "address": "fe80::1%lo0", - "prefix": "64", - "scope": "0x1" - } - ], - "macaddress": "unknown", - "mtu": "16384", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "loopback" - }, - "ansible_local": {}, - "ansible_lsb": {}, - "ansible_machine": "x86_64", - "ansible_memfree_mb": 94, - "ansible_memtotal_mb": 16384, - "ansible_model": "MacBookPro11,2", - "ansible_nodename": "MacBook-Pro-4.domain", - "ansible_os_family": "Darwin", - "ansible_osrevision": "199506", - "ansible_osversion": "19A583", - "ansible_p2p0": { - "device": "p2p0", - "flags": [ - "UP", - "BROADCAST", - "RUNNING", - "SIMPLEX", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [], - "macaddress": "06:36:3b:cf:f2:b2", - "media": "Unknown", - "media_select": "autoselect", - "mtu": "2304", - "options": [ - "CHANNEL_IO" - ], - "status": "inactive", - "type": "ether" - }, - "ansible_password": "Pm98cdLm38iq", - "ansible_pkg_mgr": "homebrew", - "ansible_playbook_python": "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python", - "ansible_processor": "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz", - "ansible_processor_cores": "4", - "ansible_processor_vcpus": "8", - "ansible_python": { - "executable": "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python", - "has_sslcontext": true, - "type": "CPython", - "version": { - "major": 2, - "micro": 16, - "minor": 7, - "releaselevel": "final", - "serial": 0 - }, - "version_info": [ - 2, - 7, - 16, - "final", - 0 - ] - }, - "ansible_python_version": "2.7.16", - "ansible_real_group_id": 20, - "ansible_real_user_id": 501, - "ansible_run_tags": [ - "all" - ], - "ansible_selinux": { - "status": "Missing selinux Python library" - }, - "ansible_selinux_python_present": false, - "ansible_service_mgr": "launchd", - "ansible_skip_tags": [], - "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBANaOKYJdhj0tZBxpolab3EOj5QIOPtKRCcuSopZyEHnqROCHsPSfITy9XsDCAuFpdnkWmyPWE6Phix4BHFq3X+ArP0hHZWxl8zF5nRss25WgtJg/ntJJ3kK8F7ldkqd89HISMnwkCJTp99842x0pFfPn5/hDJfStGXnTcABj/GPnAAAAFQCXBgShNVEh9ddQR32k1I4nxojRZQAAAIBhf04evMhdXIjhD8swgtp8DJkaZ0Nd7eXcJIiuSOdHwtffaBH1llL2L0vELrvLtvJSTEpnh000mqlRoX8C0wSC20SoWV5ul4kxvdmliXvO2BhG0XXfUOvqPxt9+W1KDv+9xvbembAfJvWJ1VDUJb/tXRpw+/Hz4pviuKLQ9CPR/wAAAIBIy04P3TZ7h7UN+mYhld+YKR2ei6HAGooF4uaGxPh1xzZtLUyidFg3+iPU0AMAZfHzB01ZLMqsJSXutZnJ5twmmyMef55c+YZpw9aBMCWZzhbrPoowoly86c6Aq6zwEiyiCeMrdnXcTouh12MpmfzgfT7j7LiyZsLtvQQVCp6Y8w==", - "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLkhDLo+ofDRAYNdnntLko5AFFw5yfeW15JOtfFsq04LvBDT6ZvEx8rRLiCSnaXMdDjlvj/gU6LYJTWM+5MPeKc=", - "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIAs4JsI/X77ORabsqAt2Kv/LKXtlvXvYi6L11wF6sLSG", - "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDFMVMTbD4rv09xtTpJPIGjitvK0Ell5m+BGUjP3q8c+CloxwVmHhx3MDLz4CnAp+FpqfZRO2nxbPgbw+FAkhlPy08IWKbO9Ttm31tRDQT87P4dcF59lfWJ0lt9z0ZW81GeztH0pQEB/ug9LYgJjUSBlqKPfwNDbmeWZzqMnCfXpRzyFgNiNo/uFfpe/flnpjP2pS+V3qPD4hO5SAAi7oPSLW8pTeQKU/luPQldiEKNcu43nqWiFFJaxIQ5jhj1DmCY2C73aXeeAW95gDay1T/C6XqsOaAAxlFi6rp217MdCZqz3ut+MHnYYARrp3cqL4RSg4B4Sa4Fj1FFevxYZv7f", - "ansible_stf0": { - "device": "stf0", - "flags": [], - "ipv4": [], - "ipv6": [], - "macaddress": "unknown", - "mtu": "1280", - "type": "unknown" - }, - "ansible_system": "Darwin", - "ansible_user": "jamestombleson", - "ansible_user_dir": "/Users/jamestombleson", - "ansible_user_gecos": "James Tombleson", - "ansible_user_gid": 20, - "ansible_user_id": "jamestombleson", - "ansible_user_shell": "/bin/zsh", - "ansible_user_uid": 501, - "ansible_userspace_architecture": "x86_64", - "ansible_userspace_bits": "64", - "ansible_utun0": { - "device": "utun0", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::4a0c:f6b5:f6fa:d72e%utun0", - "prefix": "64", - "scope": "0xc" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_utun1": { - "device": "utun1", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::ede1:8366:c98:a7b1%utun1", - "prefix": "64", - "scope": "0xd" - } - ], - "macaddress": "unknown", - "mtu": "2000", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_utun2": { - "device": "utun2", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::583d:52ab:afc:8a7f%utun2", - "prefix": "64", - "scope": "0xe" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_utun3": { - "device": "utun3", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::4adc:23a1:e517:35f1%utun3", - "prefix": "64", - "scope": "0xf" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_utun4": { - "device": "utun4", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::32f7:6f62:3d81:5cba%utun4", - "prefix": "64", - "scope": "0x10" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_utun5": { - "device": "utun5", - "flags": [ - "UP", - "POINTOPOINT", - "RUNNING", - "MULTICAST" - ], - "ipv4": [], - "ipv6": [ - { - "address": "fe80::ed73:d6b:d97a:cf4f%utun5", - "prefix": "64", - "scope": "0x11" - } - ], - "macaddress": "unknown", - "mtu": "1380", - "options": [ - "PERFORMNUD", - "DAD" - ], - "type": "unknown" - }, - "ansible_verbosity": 0, - "ansible_version": { - "full": "2.7.9", - "major": 2, - "minor": 7, - "revision": 9, - "string": "2.7.9" - }, - "ansible_virtualization_role": "", - "ansible_virtualization_type": "", - "gather_subset": [ - "all" - ], - "group_names": [ - "osx" - ], - "groups": { - "all": [ - "192.168.0.60", - "192.168.0.2", - "127.0.0.1" - ], - "elastic": [ - "192.168.0.60" - ], - "jenkins": [ - "192.168.0.60" - ], - "linux": [ - "192.168.0.60" - ], - "osx": [ - "127.0.0.1" - ], - "sensu_masters": [ - "192.168.0.60" - ], - "sensu_rabbitmq_servers": [ - "192.168.0.60" - ], - "sensu_redis_servers": [ - "192.168.0.60" - ], - "ungrouped": [], - "windows": [ - "192.168.0.2" - ] - }, - "inventory_dir": "/Users/jamestombleson/Documents/GitHub/Ansible", - "inventory_file": "/Users/jamestombleson/Documents/GitHub/Ansible/hosts", - "inventory_hostname": "127.0.0.1", - "inventory_hostname_short": "127", - "module_setup": true, - "omit": "__omit_place_holder__be3b83228b8f7956e31f1e458503db2cc38e63fc", - "playbook_dir": "/Users/jamestombleson/Documents/GitHub/Ansible/playbook" - }, - "192.168.0.2": { - "ansible_check_mode": false, - "ansible_connection": "winrm", - "ansible_diff_mode": false, - "ansible_facts": {}, - "ansible_forks": 5, - "ansible_inventory_sources": [ - "/Users/jamestombleson/Documents/GitHub/Ansible/hosts" - ], - "ansible_password": "", - "ansible_playbook_python": "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python", - "ansible_port": 5986, - "ansible_run_tags": [ - "all" - ], - "ansible_skip_tags": [], - "ansible_user": "ansible", - "ansible_verbosity": 0, - "ansible_version": { - "full": "2.7.9", - "major": 2, - "minor": 7, - "revision": 9, - "string": "2.7.9" - }, - "ansible_winrm_scheme": "https", - "ansible_winrm_server_cert_validation": "ignore", - "group_names": [ - "windows" - ], - "groups": { - "all": [ - "192.168.0.60", - "192.168.0.2", - "127.0.0.1" - ], - "elastic": [ - "192.168.0.60" - ], - "jenkins": [ - "192.168.0.60" - ], - "linux": [ - "192.168.0.60" - ], - "osx": [ - "127.0.0.1" - ], - "sensu_masters": [ - "192.168.0.60" - ], - "sensu_rabbitmq_servers": [ - "192.168.0.60" - ], - "sensu_redis_servers": [ - "192.168.0.60" - ], - "ungrouped": [], - "windows": [ - "192.168.0.2" - ] - }, - "inventory_dir": "/Users/jamestombleson/Documents/GitHub/Ansible", - "inventory_file": "/Users/jamestombleson/Documents/GitHub/Ansible/hosts", - "inventory_hostname": "192.168.0.2", - "inventory_hostname_short": "192", - "omit": "__omit_place_holder__be3b83228b8f7956e31f1e458503db2cc38e63fc", - "playbook_dir": "/Users/jamestombleson/Documents/GitHub/Ansible/playbook" - }, - "192.168.0.60": { - "ansible_become_method": "sudo", - "ansible_become_pass": "Lm38iq", - "ansible_check_mode": false, - "ansible_connection": "ssh", - "ansible_diff_mode": false, - "ansible_facts": {}, - "ansible_forks": 5, - "ansible_inventory_sources": [ - "/Users/jamestombleson/Documents/GitHub/Ansible/hosts" - ], - "ansible_password": "Lm38iq", - "ansible_playbook_python": "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python", - "ansible_python_interpreter": "/usr/bin/python3", - "ansible_run_tags": [ - "all" - ], - "ansible_skip_tags": [], - "ansible_user": "ansible", - "ansible_verbosity": 0, - "ansible_version": { - "full": "2.7.9", - "major": 2, - "minor": 7, - "revision": 9, - "string": "2.7.9" - }, - "group_names": [ - "elastic", - "jenkins", - "linux", - "sensu_masters", - "sensu_rabbitmq_servers", - "sensu_redis_servers" - ], - "groups": { - "all": [ - "192.168.0.60", - "192.168.0.2", - "127.0.0.1" - ], - "elastic": [ - "192.168.0.60" - ], - "jenkins": [ - "192.168.0.60" - ], - "linux": [ - "192.168.0.60" - ], - "osx": [ - "127.0.0.1" - ], - "sensu_masters": [ - "192.168.0.60" - ], - "sensu_rabbitmq_servers": [ - "192.168.0.60" - ], - "sensu_redis_servers": [ - "192.168.0.60" - ], - "ungrouped": [], - "windows": [ - "192.168.0.2" - ] - }, - "inventory_dir": "/Users/jamestombleson/Documents/GitHub/Ansible", - "inventory_file": "/Users/jamestombleson/Documents/GitHub/Ansible/hosts", - "inventory_hostname": "192.168.0.60", - "inventory_hostname_short": "192", - "omit": "__omit_place_holder__be3b83228b8f7956e31f1e458503db2cc38e63fc", - "playbook_dir": "/Users/jamestombleson/Documents/GitHub/Ansible/playbook" - } -} \ No newline at end of file diff --git a/roles/geerlingguy.docker/.gitignore b/roles/geerlingguy.docker/.gitignore new file mode 100644 index 0000000..f56f5b5 --- /dev/null +++ b/roles/geerlingguy.docker/.gitignore @@ -0,0 +1,3 @@ +*.retry +*/__pycache__ +*.pyc diff --git a/roles/geerlingguy.docker/.travis.yml b/roles/geerlingguy.docker/.travis.yml new file mode 100644 index 0000000..a8851b7 --- /dev/null +++ b/roles/geerlingguy.docker/.travis.yml @@ -0,0 +1,31 @@ +--- +language: python +services: docker + +env: + global: + - ROLE_NAME: docker + matrix: + - MOLECULE_DISTRO: centos7 + - MOLECULE_DISTRO: ubuntu1804 + - MOLECULE_DISTRO: ubuntu1604 + - MOLECULE_DISTRO: ubuntu1404 + - MOLECULE_DISTRO: debian9 + - MOLECULE_DISTRO: fedora27 + +install: + # Install test dependencies. + - pip install molecule docker + +before_script: + # Use actual Ansible Galaxy role name for the project directory. + - cd ../ + - mv ansible-role-$ROLE_NAME geerlingguy.$ROLE_NAME + - cd geerlingguy.$ROLE_NAME + +script: + # Run tests. + - molecule test + +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/ diff --git a/roles/geerlingguy.docker/LICENSE b/roles/geerlingguy.docker/LICENSE new file mode 100644 index 0000000..4275cf3 --- /dev/null +++ b/roles/geerlingguy.docker/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2017 Jeff Geerling + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/roles/geerlingguy.docker/README.md b/roles/geerlingguy.docker/README.md new file mode 100644 index 0000000..9a49840 --- /dev/null +++ b/roles/geerlingguy.docker/README.md @@ -0,0 +1,89 @@ +# Ansible Role: Docker + +[![Build Status](https://travis-ci.org/geerlingguy/ansible-role-docker.svg?branch=master)](https://travis-ci.org/geerlingguy/ansible-role-docker) + +An Ansible Role that installs [Docker](https://www.docker.com) on Linux. + +## Requirements + +None. + +## Role Variables + +Available variables are listed below, along with default values (see `defaults/main.yml`): + + # Edition can be one of: 'ce' (Community Edition) or 'ee' (Enterprise Edition). + docker_edition: 'ce' + docker_package: "docker-{{ docker_edition }}" + docker_package_state: present + +The `docker_edition` should be either `ce` (Community Edition) or `ee` (Enterprise Edition). You can also specify a specific version of Docker to install using the distribution-specific format: Red Hat/CentOS: `docker-{{ docker_edition }}-`; Debian/Ubuntu: `docker-{{ docker_edition }}=`. + +You can control whether the package is installed, uninstalled, or at the latest version by setting `docker_package_state` to `present`, `absent`, or `latest`, respectively. Note that the Docker daemon will be automatically restarted if the Docker package is updated. This is a side effect of flushing all handlers (running any of the handlers that have been notified by this and any other role up to this point in the play). + + docker_service_state: started + docker_service_enabled: true + docker_restart_handler_state: restarted + +Variables to control the state of the `docker` service, and whether it should start on boot. If you're installing Docker inside a Docker container without systemd or sysvinit, you should set these to `stopped` and set the enabled variable to `no`. + + docker_install_compose: true + docker_compose_version: "1.22.0" + docker_compose_path: /usr/local/bin/docker-compose + +Docker Compose installation options. + + docker_apt_release_channel: stable + docker_apt_arch: amd64 + docker_apt_repository: "deb [arch={{ docker_apt_arch }}] https://download.docker.com/linux/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} {{ docker_apt_release_channel }}" + docker_apt_ignore_key_error: True + +(Used only for Debian/Ubuntu.) You can switch the channel to `edge` if you want to use the Edge release. + + docker_yum_repo_url: https://download.docker.com/linux/centos/docker-{{ docker_edition }}.repo + docker_yum_repo_enable_edge: 0 + docker_yum_repo_enable_test: 0 + +(Used only for RedHat/CentOS.) You can enable the Edge or Test repo by setting the respective vars to `1`. + + docker_users: + - user1 + - user2 + +A list of system users to be added to the `docker` group (so they can use Docker on the server). + +## Use with Ansible (and `docker` Python library) + +Many users of this role wish to also use Ansible to then _build_ Docker images and manage Docker containers on the server where Docker is installed. In this case, you can easily add in the `docker` Python library using the `geerlingguy.pip` role: + +```yaml +- hosts: all + + vars: + pip_install_packages: + - name: docker + + roles: + - geerlingguy.pip + - geerlingguy.docker +``` + +## Dependencies + +None. + +## Example Playbook + +```yaml +- hosts: all + roles: + - geerlingguy.docker +``` + +## License + +MIT / BSD + +## Author Information + +This role was created in 2017 by [Jeff Geerling](https://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/). diff --git a/roles/geerlingguy.docker/defaults/main.yml b/roles/geerlingguy.docker/defaults/main.yml new file mode 100644 index 0000000..3a9cc47 --- /dev/null +++ b/roles/geerlingguy.docker/defaults/main.yml @@ -0,0 +1,29 @@ +--- +# Edition can be one of: 'ce' (Community Edition) or 'ee' (Enterprise Edition). +docker_edition: 'ce' +docker_package: "docker-{{ docker_edition }}" +docker_package_state: present + +# Service options. +docker_service_state: started +docker_service_enabled: true +docker_restart_handler_state: restarted + +# Docker Compose options. +docker_install_compose: true +docker_compose_version: "1.24.1" +docker_compose_path: /usr/local/bin/docker-compose + +# Used only for Debian/Ubuntu. Switch 'stable' to 'edge' if needed. +docker_apt_release_channel: stable +docker_apt_arch: amd64 +docker_apt_repository: "deb [arch={{ docker_apt_arch }}] https://download.docker.com/linux/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} {{ docker_apt_release_channel }}" +docker_apt_ignore_key_error: true + +# Used only for RedHat/CentOS/Fedora. +docker_yum_repo_url: https://download.docker.com/linux/{{ (ansible_distribution == "Fedora") | ternary("fedora","centos") }}/docker-{{ docker_edition }}.repo +docker_yum_repo_enable_edge: 0 +docker_yum_repo_enable_test: 0 + +# A list of users who will be added to the docker group. +docker_users: [] diff --git a/roles/geerlingguy.docker/handlers/main.yml b/roles/geerlingguy.docker/handlers/main.yml new file mode 100644 index 0000000..7847bc1 --- /dev/null +++ b/roles/geerlingguy.docker/handlers/main.yml @@ -0,0 +1,3 @@ +--- +- name: restart docker + service: "name=docker state={{ docker_restart_handler_state }}" diff --git a/roles/geerlingguy.docker/meta/.galaxy_install_info b/roles/geerlingguy.docker/meta/.galaxy_install_info new file mode 100644 index 0000000..d33da8c --- /dev/null +++ b/roles/geerlingguy.docker/meta/.galaxy_install_info @@ -0,0 +1,2 @@ +install_date: Sun Oct 20 01:52:19 2019 +version: 2.5.3 diff --git a/roles/geerlingguy.docker/meta/main.yml b/roles/geerlingguy.docker/meta/main.yml new file mode 100644 index 0000000..0dfa4cd --- /dev/null +++ b/roles/geerlingguy.docker/meta/main.yml @@ -0,0 +1,34 @@ +--- +dependencies: [] + +galaxy_info: + author: geerlingguy + description: Docker for Linux. + company: "Midwestern Mac, LLC" + license: "license (BSD, MIT)" + min_ansible_version: 2.4 + platforms: + - name: EL + versions: + - 6 + - 7 + - name: Fedora + versions: + - all + - name: Debian + versions: + - jessie + - stretch + - name: Ubuntu + versions: + - trusty + - xenial + - bionic + galaxy_tags: + - web + - system + - containers + - docker + - orchestration + - compose + - server diff --git a/roles/geerlingguy.docker/molecule/default/molecule.yml b/roles/geerlingguy.docker/molecule/default/molecule.yml new file mode 100644 index 0000000..2ca6fea --- /dev/null +++ b/roles/geerlingguy.docker/molecule/default/molecule.yml @@ -0,0 +1,29 @@ +--- +dependency: + name: galaxy +driver: + name: docker +lint: + name: yamllint + options: + config-file: molecule/default/yaml-lint.yml +platforms: + - name: instance + image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest" + command: ${MOLECULE_DOCKER_COMMAND:-""} + volumes: + - /sys/fs/cgroup:/sys/fs/cgroup:ro + privileged: true + pre_build_image: true +provisioner: + name: ansible + lint: + name: ansible-lint + playbooks: + converge: ${MOLECULE_PLAYBOOK:-playbook.yml} +scenario: + name: default +verifier: + name: testinfra + lint: + name: flake8 diff --git a/roles/geerlingguy.docker/molecule/default/playbook.yml b/roles/geerlingguy.docker/molecule/default/playbook.yml new file mode 100644 index 0000000..dad331d --- /dev/null +++ b/roles/geerlingguy.docker/molecule/default/playbook.yml @@ -0,0 +1,12 @@ +--- +- name: Converge + hosts: all + become: true + + pre_tasks: + - name: Update apt cache. + apt: update_cache=yes cache_valid_time=600 + when: ansible_os_family == 'Debian' + + roles: + - role: geerlingguy.docker diff --git a/roles/geerlingguy.docker/molecule/default/yaml-lint.yml b/roles/geerlingguy.docker/molecule/default/yaml-lint.yml new file mode 100644 index 0000000..7aeec5a --- /dev/null +++ b/roles/geerlingguy.docker/molecule/default/yaml-lint.yml @@ -0,0 +1,6 @@ +--- +extends: default +rules: + line-length: + max: 200 + level: warning diff --git a/roles/geerlingguy.docker/tasks/docker-1809-shim.yml b/roles/geerlingguy.docker/tasks/docker-1809-shim.yml new file mode 100644 index 0000000..286254b --- /dev/null +++ b/roles/geerlingguy.docker/tasks/docker-1809-shim.yml @@ -0,0 +1,16 @@ +--- +- name: Ensure containerd service dir exists. + file: + path: /etc/systemd/system/containerd.service.d + state: directory + +- name: Add shim to ensure Docker can start in all environments. + template: + src: override.conf.j2 + dest: /etc/systemd/system/containerd.service.d/override.conf + register: override_template + +- name: Reload systemd daemon if template is changed. + systemd: + daemon_reload: true + when: override_template is changed diff --git a/roles/geerlingguy.docker/tasks/docker-compose.yml b/roles/geerlingguy.docker/tasks/docker-compose.yml new file mode 100644 index 0000000..92cf4f2 --- /dev/null +++ b/roles/geerlingguy.docker/tasks/docker-compose.yml @@ -0,0 +1,20 @@ +--- +- name: Check current docker-compose version. + command: docker-compose --version + register: docker_compose_current_version + changed_when: false + failed_when: false + +- name: Delete existing docker-compose version if it's different. + file: + path: "{{ docker_compose_path }}" + state: absent + when: > + docker_compose_current_version.stdout is defined + and docker_compose_version not in docker_compose_current_version.stdout + +- name: Install Docker Compose (if configured). + get_url: + url: https://github.com/docker/compose/releases/download/{{ docker_compose_version }}/docker-compose-Linux-x86_64 + dest: "{{ docker_compose_path }}" + mode: 0755 diff --git a/roles/geerlingguy.docker/tasks/docker-users.yml b/roles/geerlingguy.docker/tasks/docker-users.yml new file mode 100644 index 0000000..b3b6e0f --- /dev/null +++ b/roles/geerlingguy.docker/tasks/docker-users.yml @@ -0,0 +1,7 @@ +--- +- name: Ensure docker users are added to the docker group. + user: + name: "{{ item }}" + groups: docker + append: true + with_items: "{{ docker_users }}" diff --git a/roles/geerlingguy.docker/tasks/main.yml b/roles/geerlingguy.docker/tasks/main.yml new file mode 100644 index 0000000..8968c77 --- /dev/null +++ b/roles/geerlingguy.docker/tasks/main.yml @@ -0,0 +1,31 @@ +--- +- include_tasks: setup-RedHat.yml + when: ansible_os_family == 'RedHat' + +- include_tasks: setup-Debian.yml + when: ansible_os_family == 'Debian' + +- name: Install Docker. + package: + name: "{{ docker_package }}" + state: "{{ docker_package_state }}" + notify: restart docker + +# TODO: Remove this shim once 18.09.1 or later is released. +- import_tasks: docker-1809-shim.yml + when: ansible_service_mgr == 'systemd' + +- name: Ensure Docker is started and enabled at boot. + service: + name: docker + state: "{{ docker_service_state }}" + enabled: "{{ docker_service_enabled }}" + +- name: Ensure handlers are notified now to avoid firewall conflicts. + meta: flush_handlers + +- include_tasks: docker-compose.yml + when: docker_install_compose | bool + +- include_tasks: docker-users.yml + when: docker_users | length > 0 diff --git a/roles/geerlingguy.docker/tasks/setup-Debian.yml b/roles/geerlingguy.docker/tasks/setup-Debian.yml new file mode 100644 index 0000000..eaaa96f --- /dev/null +++ b/roles/geerlingguy.docker/tasks/setup-Debian.yml @@ -0,0 +1,40 @@ +--- +- name: Ensure old versions of Docker are not installed. + package: + name: + - docker + - docker-engine + state: absent + +- name: Ensure dependencies are installed. + apt: + name: + - apt-transport-https + - ca-certificates + state: present + +- name: Add Docker apt key. + apt_key: + url: https://download.docker.com/linux/ubuntu/gpg + id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88 + state: present + register: add_repository_key + ignore_errors: "{{ docker_apt_ignore_key_error }}" + +- name: Ensure curl is present (on older systems without SNI). + package: name=curl state=present + when: add_repository_key is failed + +- name: Add Docker apt key (alternative for older systems without SNI). + shell: | + set -o pipefail + curl -sSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - + args: + warn: false + when: add_repository_key is failed + +- name: Add Docker repository. + apt_repository: + repo: "{{ docker_apt_repository }}" + state: present + update_cache: true diff --git a/roles/geerlingguy.docker/tasks/setup-RedHat.yml b/roles/geerlingguy.docker/tasks/setup-RedHat.yml new file mode 100644 index 0000000..0cd1a50 --- /dev/null +++ b/roles/geerlingguy.docker/tasks/setup-RedHat.yml @@ -0,0 +1,35 @@ +--- +- name: Ensure old versions of Docker are not installed. + package: + name: + - docker + - docker-common + - docker-engine + state: absent + +- name: Add Docker GPG key. + rpm_key: + key: https://download.docker.com/linux/centos/gpg + state: present + +- name: Add Docker repository. + get_url: + url: "{{ docker_yum_repo_url }}" + dest: '/etc/yum.repos.d/docker-{{ docker_edition }}.repo' + owner: root + group: root + mode: 0644 + +- name: Configure Docker Edge repo. + ini_file: + dest: '/etc/yum.repos.d/docker-{{ docker_edition }}.repo' + section: 'docker-{{ docker_edition }}-edge' + option: enabled + value: '{{ docker_yum_repo_enable_edge }}' + +- name: Configure Docker Test repo. + ini_file: + dest: '/etc/yum.repos.d/docker-{{ docker_edition }}.repo' + section: 'docker-{{ docker_edition }}-test' + option: enabled + value: '{{ docker_yum_repo_enable_test }}' diff --git a/roles/geerlingguy.docker/templates/override.conf.j2 b/roles/geerlingguy.docker/templates/override.conf.j2 new file mode 100644 index 0000000..adab53c --- /dev/null +++ b/roles/geerlingguy.docker/templates/override.conf.j2 @@ -0,0 +1,3 @@ +# {{ ansible_managed }} +[Service] +ExecStartPre= diff --git a/roles/geerlingguy.git/.ansible-lint b/roles/geerlingguy.git/.ansible-lint new file mode 100644 index 0000000..1ae5e6c --- /dev/null +++ b/roles/geerlingguy.git/.ansible-lint @@ -0,0 +1,2 @@ +skip_list: + - '204' diff --git a/roles/geerlingguy.git/.gitignore b/roles/geerlingguy.git/.gitignore new file mode 100644 index 0000000..f56f5b5 --- /dev/null +++ b/roles/geerlingguy.git/.gitignore @@ -0,0 +1,3 @@ +*.retry +*/__pycache__ +*.pyc diff --git a/roles/geerlingguy.git/.travis.yml b/roles/geerlingguy.git/.travis.yml new file mode 100644 index 0000000..742ed3b --- /dev/null +++ b/roles/geerlingguy.git/.travis.yml @@ -0,0 +1,34 @@ +--- +language: python +services: docker + +env: + global: + - ROLE_NAME: git + matrix: + - MOLECULE_DISTRO: centos7 + MOLECULE_PLAYBOOK: playbook-source.yml + - MOLECULE_DISTRO: ubuntu1804 + MOLECULE_PLAYBOOK: playbook-source.yml + - MOLECULE_DISTRO: centos7 + - MOLECULE_DISTRO: centos6 + - MOLECULE_DISTRO: ubuntu1804 + - MOLECULE_DISTRO: ubuntu1604 + - MOLECULE_DISTRO: debian9 + +install: + # Install test dependencies. + - pip install molecule docker + +before_script: + # Use actual Ansible Galaxy role name for the project directory. + - cd ../ + - mv ansible-role-$ROLE_NAME geerlingguy.$ROLE_NAME + - cd geerlingguy.$ROLE_NAME + +script: + # Run tests. + - molecule test + +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/ diff --git a/roles/geerlingguy.git/LICENSE b/roles/geerlingguy.git/LICENSE new file mode 100644 index 0000000..4275cf3 --- /dev/null +++ b/roles/geerlingguy.git/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2017 Jeff Geerling + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/roles/geerlingguy.git/README.md b/roles/geerlingguy.git/README.md new file mode 100644 index 0000000..d1eb74d --- /dev/null +++ b/roles/geerlingguy.git/README.md @@ -0,0 +1,55 @@ +# Ansible Role: Git + +[![Build Status](https://travis-ci.org/geerlingguy/ansible-role-git.svg?branch=master)](https://travis-ci.org/geerlingguy/ansible-role-git) + +Installs Git, a distributed version control system, on any RHEL/CentOS or Debian/Ubuntu Linux system. + +## Requirements + +None. + +## Role Variables + +Available variables are listed below, along with default values (see `defaults/main.yml`): + + workspace: /root + +Where certain files will be downloaded and adjusted prior to git installation, if needed. + + git_enablerepo: "" + +This variable, a well as `git_packages`, will be used to install git via a particular `yum` repo if `git_install_from_source` is false (CentOS only). Any additional repositories you have installed that you would like to use for a newer/different Git version. + + git_packages: + - git + - git-svn + +The specific Git packages that will be installed. By default, `git-svn` is included, but you can easily add this variable to your playbook's variables and remove `git-svn` if desired. + + git_install_from_source: false + git_install_path: "/usr" + git_version: "2.16.2" + +Whether to install Git from source; if set to `true`, `git_version` is required and will be used to install a particular version of git (see all available versions here: https://www.kernel.org/pub/software/scm/git/), and `git_install_path` defines where git should be installed. + + git_install_from_source_force_update: false + +If git is already installed at and older version, force a new source build. Only applies if `git_install_from_source` is `true`. + +## Dependencies + +None. + +## Example Playbook + + - hosts: servers + roles: + - { role: geerlingguy.git } + +## License + +MIT / BSD + +## Author Information + +This role was created in 2014 by [Jeff Geerling](https://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/). diff --git a/roles/geerlingguy.git/defaults/main.yml b/roles/geerlingguy.git/defaults/main.yml new file mode 100644 index 0000000..d01f332 --- /dev/null +++ b/roles/geerlingguy.git/defaults/main.yml @@ -0,0 +1,23 @@ +--- +workspace: /root + +# If git_install_from_source is set to false, these two variables define whether +# to use an additional repo for the package installation, and which git packages +# will be installed. +git_enablerepo: "" +git_packages: + - git + - git-svn + +# If set to TRUE, git will be installed from source, using the version set with +# the 'git_version' variable instead of using a package. +git_install_from_source: false +git_install_path: "/usr" +git_version: "2.16.2" + +# If git is already installed at and older version, force a new source build. +# Only applies if git_install_from_source is `true`. +git_install_from_source_force_update: false + +# Leave this at it's default. +git_reinstall_from_source: false diff --git a/roles/geerlingguy.git/meta/.galaxy_install_info b/roles/geerlingguy.git/meta/.galaxy_install_info new file mode 100644 index 0000000..a596198 --- /dev/null +++ b/roles/geerlingguy.git/meta/.galaxy_install_info @@ -0,0 +1,2 @@ +install_date: Sun Oct 20 01:54:10 2019 +version: 2.0.5 diff --git a/roles/geerlingguy.git/meta/main.yml b/roles/geerlingguy.git/meta/main.yml new file mode 100644 index 0000000..4e1fd8f --- /dev/null +++ b/roles/geerlingguy.git/meta/main.yml @@ -0,0 +1,29 @@ +--- +dependencies: [] + +galaxy_info: + author: geerlingguy + description: Git version control software + company: "Midwestern Mac, LLC" + license: "license (BSD, MIT)" + min_ansible_version: 2.4 + platforms: + - name: EL + versions: + - all + - name: Fedora + versions: + - all + - name: Debian + versions: + - all + - name: Ubuntu + versions: + - all + galaxy_tags: + - development + - system + - git + - vcs + - source + - code diff --git a/roles/geerlingguy.git/molecule/default/molecule.yml b/roles/geerlingguy.git/molecule/default/molecule.yml new file mode 100644 index 0000000..2ca6fea --- /dev/null +++ b/roles/geerlingguy.git/molecule/default/molecule.yml @@ -0,0 +1,29 @@ +--- +dependency: + name: galaxy +driver: + name: docker +lint: + name: yamllint + options: + config-file: molecule/default/yaml-lint.yml +platforms: + - name: instance + image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest" + command: ${MOLECULE_DOCKER_COMMAND:-""} + volumes: + - /sys/fs/cgroup:/sys/fs/cgroup:ro + privileged: true + pre_build_image: true +provisioner: + name: ansible + lint: + name: ansible-lint + playbooks: + converge: ${MOLECULE_PLAYBOOK:-playbook.yml} +scenario: + name: default +verifier: + name: testinfra + lint: + name: flake8 diff --git a/roles/geerlingguy.git/molecule/default/playbook-source.yml b/roles/geerlingguy.git/molecule/default/playbook-source.yml new file mode 100644 index 0000000..5974363 --- /dev/null +++ b/roles/geerlingguy.git/molecule/default/playbook-source.yml @@ -0,0 +1,18 @@ +--- +- name: Converge + hosts: all + become: true + + vars: + git_install_from_source: true + git_install_from_source_force_update: true + git_version: "2.16.2" + + pre_tasks: + - name: Update apt cache. + apt: update_cache=true cache_valid_time=600 + when: ansible_os_family == 'Debian' + changed_when: false + + roles: + - role: geerlingguy.git diff --git a/roles/geerlingguy.git/molecule/default/playbook.yml b/roles/geerlingguy.git/molecule/default/playbook.yml new file mode 100644 index 0000000..2b57874 --- /dev/null +++ b/roles/geerlingguy.git/molecule/default/playbook.yml @@ -0,0 +1,17 @@ +--- +- name: Converge + hosts: all + become: true + + vars: + git_install_from_source: false + git_install_path: /usr/local + + pre_tasks: + - name: Update apt cache. + apt: update_cache=true cache_valid_time=600 + when: ansible_os_family == 'Debian' + changed_when: false + + roles: + - role: geerlingguy.git diff --git a/roles/geerlingguy.git/molecule/default/yaml-lint.yml b/roles/geerlingguy.git/molecule/default/yaml-lint.yml new file mode 100644 index 0000000..db22c42 --- /dev/null +++ b/roles/geerlingguy.git/molecule/default/yaml-lint.yml @@ -0,0 +1,6 @@ +--- +extends: default +rules: + line-length: + max: 160 + level: warning diff --git a/roles/geerlingguy.git/tasks/install-from-source.yml b/roles/geerlingguy.git/tasks/install-from-source.yml new file mode 100644 index 0000000..a32af0a --- /dev/null +++ b/roles/geerlingguy.git/tasks/install-from-source.yml @@ -0,0 +1,64 @@ +--- +- name: Include OS-specific variables (RedHat). + include_vars: "{{ ansible_os_family }}.yml" + when: + - ansible_os_family == "RedHat" + - ansible_distribution != "Fedora" + +- name: Include OS-specific variables (Fedora). + include_vars: "{{ ansible_distribution }}.yml" + when: ansible_distribution == "Fedora" + +- name: Include OS-specific variables (Debian). + include_vars: "{{ ansible_os_family }}.yml" + when: ansible_os_family == "Debian" + +- name: Define git_install_from_source_dependencies. + set_fact: + git_install_from_source_dependencies: "{{ __git_install_from_source_dependencies | list }}" + when: git_install_from_source_dependencies is not defined + +- name: Ensure git's dependencies are installed. + package: + name: "{{ git_install_from_source_dependencies }}" + state: present + +- name: Get installed version. + command: > + git --version + warn=no + changed_when: false + failed_when: false + check_mode: false + register: git_installed_version + +- name: Force git install if the version numbers do not match. + set_fact: + git_reinstall_from_source: true + when: + - git_install_from_source_force_update | bool + - (git_installed_version.rc == 0) and (git_installed_version.stdout | regex_replace("^.*?([0-9\.]+)$", "\\1") | version_compare(git_version, operator="!=")) + +- name: Download git. + get_url: + url: "https://www.kernel.org/pub/software/scm/git/git-{{ git_version }}.tar.gz" + dest: "{{ workspace }}/git-{{ git_version }}.tar.gz" + when: (git_installed_version.rc != 0) or (git_reinstall_from_source | bool) + +- name: Expand git archive. + unarchive: + src: "{{ workspace }}/git-{{ git_version }}.tar.gz" + dest: "{{ workspace }}" + creates: "{{ workspace }}/git-{{ git_version }}/README" + copy: false + when: (git_installed_version.rc != 0) or (git_reinstall_from_source | bool) + +- name: Build git. + command: > + make prefix={{ git_install_path }} {{ item }} + chdir={{ workspace }}/git-{{ git_version }} + with_items: + - all + - install + when: (git_installed_version.rc != 0) or (git_reinstall_from_source | bool) + become: true diff --git a/roles/geerlingguy.git/tasks/main.yml b/roles/geerlingguy.git/tasks/main.yml new file mode 100644 index 0000000..d7cc581 --- /dev/null +++ b/roles/geerlingguy.git/tasks/main.yml @@ -0,0 +1,24 @@ +--- +- name: Ensure git is installed (RedHat). + package: + name: "{{ git_packages }}" + state: present + enablerepo: "{{ git_enablerepo | default(omit, true) }}" + when: + - not git_install_from_source | bool + - ansible_os_family == 'RedHat' + +- name: Update apt cache (Debian). + apt: update_cache=true cache_valid_time=86400 + when: ansible_os_family == 'Debian' + +- name: Ensure git is installed (Debian). + apt: + name: "{{ git_packages }}" + state: present + when: + - not git_install_from_source | bool + - ansible_os_family == 'Debian' + +- import_tasks: install-from-source.yml + when: git_install_from_source | bool diff --git a/roles/geerlingguy.git/vars/Debian.yml b/roles/geerlingguy.git/vars/Debian.yml new file mode 100644 index 0000000..230e674 --- /dev/null +++ b/roles/geerlingguy.git/vars/Debian.yml @@ -0,0 +1,9 @@ +--- +git_install_from_source_dependencies: + - libcurl4-gnutls-dev + - libexpat1-dev + - gettext + - libssl-dev + - zlib1g-dev + - build-essential + - gcc diff --git a/roles/geerlingguy.git/vars/Fedora.yml b/roles/geerlingguy.git/vars/Fedora.yml new file mode 100644 index 0000000..c0daee1 --- /dev/null +++ b/roles/geerlingguy.git/vars/Fedora.yml @@ -0,0 +1,12 @@ +--- +git_install_from_source_dependencies: + - gettext-devel + - expat-devel + - curl-devel + - zlib-devel + - perl-devel + - openssl-devel + - subversion-perl + - make + - gcc + - tar diff --git a/roles/geerlingguy.git/vars/RedHat.yml b/roles/geerlingguy.git/vars/RedHat.yml new file mode 100644 index 0000000..d54dc5b --- /dev/null +++ b/roles/geerlingguy.git/vars/RedHat.yml @@ -0,0 +1,11 @@ +--- +git_install_from_source_dependencies: + - gettext-devel + - expat-devel + - curl-devel + - zlib-devel + - perl-devel + - openssl-devel + - subversion-perl + - make + - gcc diff --git a/roles/geerlingguy.git/vars/main.yml b/roles/geerlingguy.git/vars/main.yml new file mode 100644 index 0000000..10e268a --- /dev/null +++ b/roles/geerlingguy.git/vars/main.yml @@ -0,0 +1,2 @@ +--- +# This space intentionally left blank. diff --git a/roles/geerlingguy.nodejs/.ansible-lint b/roles/geerlingguy.nodejs/.ansible-lint new file mode 100644 index 0000000..0af17d0 --- /dev/null +++ b/roles/geerlingguy.nodejs/.ansible-lint @@ -0,0 +1,3 @@ +skip_list: + - '405' + - '204' diff --git a/roles/geerlingguy.nodejs/.gitignore b/roles/geerlingguy.nodejs/.gitignore new file mode 100644 index 0000000..f56f5b5 --- /dev/null +++ b/roles/geerlingguy.nodejs/.gitignore @@ -0,0 +1,3 @@ +*.retry +*/__pycache__ +*.pyc diff --git a/roles/geerlingguy.nodejs/.travis.yml b/roles/geerlingguy.nodejs/.travis.yml new file mode 100644 index 0000000..05cf095 --- /dev/null +++ b/roles/geerlingguy.nodejs/.travis.yml @@ -0,0 +1,34 @@ +--- +language: python +services: docker + +env: + global: + - ROLE_NAME: nodejs + matrix: + - MOLECULE_DISTRO: centos7 + - MOLECULE_DISTRO: centos6 + - MOLECULE_DISTRO: ubuntu1804 + - MOLECULE_DISTRO: ubuntu1604 + - MOLECULE_DISTRO: debian9 + - MOLECULE_DISTRO: debian8 + + - MOLECULE_DISTRO: centos7 + MOLECULE_PLAYBOOK: playbook-latest.yml + +install: + # Install test dependencies. + - pip install molecule docker + +before_script: + # Use actual Ansible Galaxy role name for the project directory. + - cd ../ + - mv ansible-role-$ROLE_NAME geerlingguy.$ROLE_NAME + - cd geerlingguy.$ROLE_NAME + +script: + # Run tests. + - molecule test + +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/ diff --git a/roles/geerlingguy.nodejs/LICENSE b/roles/geerlingguy.nodejs/LICENSE new file mode 100644 index 0000000..4275cf3 --- /dev/null +++ b/roles/geerlingguy.nodejs/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2017 Jeff Geerling + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/roles/geerlingguy.nodejs/README.md b/roles/geerlingguy.nodejs/README.md new file mode 100644 index 0000000..87f9c96 --- /dev/null +++ b/roles/geerlingguy.nodejs/README.md @@ -0,0 +1,73 @@ +# Ansible Role: Node.js + +[![Build Status](https://travis-ci.org/geerlingguy/ansible-role-nodejs.svg?branch=master)](https://travis-ci.org/geerlingguy/ansible-role-nodejs) + +Installs Node.js on RHEL/CentOS or Debian/Ubuntu. + +## Requirements + +None. + +## Role Variables + +Available variables are listed below, along with default values (see `defaults/main.yml`): + + nodejs_version: "10.x" + +The Node.js version to install. "10.x" is the default and works on most supported OSes. Other versions such as "0.12", "4.x", "5.x", "6.x", "8.x", "10.x" etc. should work on the latest versions of Debian/Ubuntu and RHEL/CentOS. + + nodejs_install_npm_user: "{{ ansible_ssh_user }}" + +The user for whom the npm packages will be installed can be set here, this defaults to `ansible_user`. + + npm_config_prefix: "/usr/local/lib/npm" + +The global installation directory. This should be writeable by the `nodejs_install_npm_user`. + + npm_config_unsafe_perm: "false" + +Set to true to suppress the UID/GID switching when running package scripts. If set explicitly to false, then installing as a non-root user will fail. + + nodejs_npm_global_packages: [] + +A list of npm packages with a `name` and (optional) `version` to be installed globally. For example: + + nodejs_npm_global_packages: + # Install a specific version of a package. + - name: jslint + version: 0.9.3 + # Install the latest stable release of a package. + - name: node-sass + # This shorthand syntax also works (same as previous example). + - node-sass + + + nodejs_package_json_path: "" + +Set a path pointing to a particular `package.json` (e.g. `"/var/www/app/package.json"`). This will install all of the defined packages globally using Ansible's `npm` module. + +## Dependencies + +None. + +## Example Playbook + + - hosts: utility + vars_files: + - vars/main.yml + roles: + - geerlingguy.nodejs + +*Inside `vars/main.yml`*: + + nodejs_npm_global_packages: + - name: jslint + - name: node-sass + +## License + +MIT / BSD + +## Author Information + +This role was created in 2014 by [Jeff Geerling](https://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/). diff --git a/roles/geerlingguy.nodejs/defaults/main.yml b/roles/geerlingguy.nodejs/defaults/main.yml new file mode 100644 index 0000000..7b76032 --- /dev/null +++ b/roles/geerlingguy.nodejs/defaults/main.yml @@ -0,0 +1,27 @@ +--- +# Set the version of Node.js to install ("6.x", "8.x", "10.x", "11.x", etc.). +# Version numbers from Nodesource: https://github.com/nodesource/distributions +nodejs_version: "10.x" + +# The user for whom the npm packages will be installed. +# nodejs_install_npm_user: username + +# The directory for global installations. +npm_config_prefix: "/usr/local/lib/npm" + +# Set to true to suppress the UID/GID switching when running package scripts. If +# set explicitly to false, then installing as a non-root user will fail. +npm_config_unsafe_perm: "false" + +# Define a list of global packages to be installed with NPM. +nodejs_npm_global_packages: [] +# # Install a specific version of a package. +# - name: jslint +# version: 0.9.3 +# # Install the latest stable release of a package. +# - name: node-sass +# # This shorthand syntax also works (same as previous example). +# - node-sass + +# The path of a package.json file used to install packages globally. +nodejs_package_json_path: "" diff --git a/roles/geerlingguy.nodejs/meta/.galaxy_install_info b/roles/geerlingguy.nodejs/meta/.galaxy_install_info new file mode 100644 index 0000000..5bbc52f --- /dev/null +++ b/roles/geerlingguy.nodejs/meta/.galaxy_install_info @@ -0,0 +1,2 @@ +install_date: Sun Oct 20 01:52:29 2019 +version: 5.0.0 diff --git a/roles/geerlingguy.nodejs/meta/main.yml b/roles/geerlingguy.nodejs/meta/main.yml new file mode 100644 index 0000000..24dc3ee --- /dev/null +++ b/roles/geerlingguy.nodejs/meta/main.yml @@ -0,0 +1,30 @@ +--- +dependencies: [] + +galaxy_info: + author: geerlingguy + description: Node.js installation for Linux + company: "Midwestern Mac, LLC" + license: "license (BSD, MIT)" + min_ansible_version: 2.4 + platforms: + - name: EL + versions: + - 6 + - 7 + - name: Debian + versions: + - all + - name: Ubuntu + versions: + - trusty + - xenial + - bionic + galaxy_tags: + - development + - web + - javascript + - js + - node + - npm + - nodejs diff --git a/roles/geerlingguy.nodejs/molecule/default/molecule.yml b/roles/geerlingguy.nodejs/molecule/default/molecule.yml new file mode 100644 index 0000000..2ca6fea --- /dev/null +++ b/roles/geerlingguy.nodejs/molecule/default/molecule.yml @@ -0,0 +1,29 @@ +--- +dependency: + name: galaxy +driver: + name: docker +lint: + name: yamllint + options: + config-file: molecule/default/yaml-lint.yml +platforms: + - name: instance + image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest" + command: ${MOLECULE_DOCKER_COMMAND:-""} + volumes: + - /sys/fs/cgroup:/sys/fs/cgroup:ro + privileged: true + pre_build_image: true +provisioner: + name: ansible + lint: + name: ansible-lint + playbooks: + converge: ${MOLECULE_PLAYBOOK:-playbook.yml} +scenario: + name: default +verifier: + name: testinfra + lint: + name: flake8 diff --git a/roles/geerlingguy.nodejs/molecule/default/playbook-latest.yml b/roles/geerlingguy.nodejs/molecule/default/playbook-latest.yml new file mode 100644 index 0000000..7fca428 --- /dev/null +++ b/roles/geerlingguy.nodejs/molecule/default/playbook-latest.yml @@ -0,0 +1,23 @@ +--- +- name: Converge + hosts: all + become: true + + vars: + nodejs_version: "11.x" + nodejs_install_npm_user: root + npm_config_prefix: /root/.npm-global + npm_config_unsafe_perm: "true" + nodejs_npm_global_packages: + - node-sass + - name: jslint + version: 0.12.0 + - name: yo + + pre_tasks: + - name: Update apt cache. + apt: update_cache=true cache_valid_time=600 + when: ansible_os_family == 'Debian' + + roles: + - role: geerlingguy.nodejs diff --git a/roles/geerlingguy.nodejs/molecule/default/playbook.yml b/roles/geerlingguy.nodejs/molecule/default/playbook.yml new file mode 100644 index 0000000..d1d5863 --- /dev/null +++ b/roles/geerlingguy.nodejs/molecule/default/playbook.yml @@ -0,0 +1,22 @@ +--- +- name: Converge + hosts: all + become: true + + vars: + nodejs_install_npm_user: root + npm_config_prefix: /root/.npm-global + npm_config_unsafe_perm: "true" + nodejs_npm_global_packages: + - node-sass + - name: jslint + version: 0.12.0 + - name: yo + + pre_tasks: + - name: Update apt cache. + apt: update_cache=true cache_valid_time=600 + when: ansible_os_family == 'Debian' + + roles: + - role: geerlingguy.nodejs diff --git a/roles/geerlingguy.nodejs/molecule/default/tests/test_default.py b/roles/geerlingguy.nodejs/molecule/default/tests/test_default.py new file mode 100644 index 0000000..eedd64a --- /dev/null +++ b/roles/geerlingguy.nodejs/molecule/default/tests/test_default.py @@ -0,0 +1,14 @@ +import os + +import testinfra.utils.ansible_runner + +testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( + os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') + + +def test_hosts_file(host): + f = host.file('/etc/hosts') + + assert f.exists + assert f.user == 'root' + assert f.group == 'root' diff --git a/roles/geerlingguy.nodejs/molecule/default/yaml-lint.yml b/roles/geerlingguy.nodejs/molecule/default/yaml-lint.yml new file mode 100644 index 0000000..76d1459 --- /dev/null +++ b/roles/geerlingguy.nodejs/molecule/default/yaml-lint.yml @@ -0,0 +1,6 @@ +--- +extends: default +rules: + line-length: + max: 220 + level: warning diff --git a/roles/geerlingguy.nodejs/tasks/main.yml b/roles/geerlingguy.nodejs/tasks/main.yml new file mode 100644 index 0000000..5622c35 --- /dev/null +++ b/roles/geerlingguy.nodejs/tasks/main.yml @@ -0,0 +1,42 @@ +--- +- import_tasks: setup-RedHat.yml + when: ansible_os_family == 'RedHat' + +- import_tasks: setup-Debian.yml + when: ansible_os_family == 'Debian' + +- name: Define nodejs_install_npm_user + set_fact: + nodejs_install_npm_user: "{{ ansible_user | default(lookup('env', 'USER')) }}" + when: nodejs_install_npm_user is not defined + +- name: Create npm global directory + file: + path: "{{ npm_config_prefix }}" + owner: "{{ nodejs_install_npm_user }}" + group: "{{ nodejs_install_npm_user }}" + state: directory + +- name: Add npm_config_prefix bin directory to global $PATH. + template: + src: npm.sh.j2 + dest: /etc/profile.d/npm.sh + mode: 0644 + +- name: Ensure npm global packages are installed. + npm: + name: "{{ item.name | default(item) }}" + version: "{{ item.version | default('latest') }}" + global: true + state: latest + environment: + NPM_CONFIG_PREFIX: "{{ npm_config_prefix }}" + NODE_PATH: "{{ npm_config_prefix }}/lib/node_modules" + NPM_CONFIG_UNSAFE_PERM: "{{ npm_config_unsafe_perm }}" + with_items: "{{ nodejs_npm_global_packages }}" + tags: ['skip_ansible_lint'] + +- name: Install packages defined in a given package.json. + npm: + path: "{{ nodejs_package_json_path }}" + when: nodejs_package_json_path is defined and nodejs_package_json_path diff --git a/roles/geerlingguy.nodejs/tasks/setup-Debian.yml b/roles/geerlingguy.nodejs/tasks/setup-Debian.yml new file mode 100644 index 0000000..c939617 --- /dev/null +++ b/roles/geerlingguy.nodejs/tasks/setup-Debian.yml @@ -0,0 +1,25 @@ +--- +- name: Ensure apt-transport-https is installed. + apt: name=apt-transport-https state=present + +- name: Add Nodesource apt key. + apt_key: + url: https://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x1655A0AB68576280 + id: "68576280" + state: present + +- name: Add NodeSource repositories for Node.js. + apt_repository: + repo: "{{ item }}" + state: present + with_items: + - "deb https://deb.nodesource.com/node_{{ nodejs_version }} {{ ansible_distribution_release }} main" + - "deb-src https://deb.nodesource.com/node_{{ nodejs_version }} {{ ansible_distribution_release }} main" + register: node_repo + +- name: Update apt cache if repo was added. + apt: update_cache=yes + when: node_repo.changed + +- name: Ensure Node.js and npm are installed. + apt: "name=nodejs={{ nodejs_version|regex_replace('x', '') }}* state=present" diff --git a/roles/geerlingguy.nodejs/tasks/setup-RedHat.yml b/roles/geerlingguy.nodejs/tasks/setup-RedHat.yml new file mode 100644 index 0000000..f2b9ee7 --- /dev/null +++ b/roles/geerlingguy.nodejs/tasks/setup-RedHat.yml @@ -0,0 +1,37 @@ +--- +- name: Set up the Nodesource RPM directory for Node.js > 0.10. + set_fact: + nodejs_rhel_rpm_dir: "pub_{{ nodejs_version }}" + when: nodejs_version != '0.10' + +- name: Set up the Nodesource RPM variable for Node.js == 0.10. + set_fact: + nodejs_rhel_rpm_dir: "pub" + when: nodejs_version == '0.10' + +- name: Import Nodesource RPM key (CentOS < 7). + rpm_key: + key: http://rpm.nodesource.com/pub/el/NODESOURCE-GPG-SIGNING-KEY-EL + state: present + when: ansible_distribution_major_version|int < 7 + +- name: Import Nodesource RPM key (CentOS 7+).. + rpm_key: + key: https://rpm.nodesource.com/pub/el/NODESOURCE-GPG-SIGNING-KEY-EL + state: present + when: ansible_distribution_major_version|int >= 7 + +- name: Add Nodesource repositories for Node.js (CentOS < 7). + yum: + name: "http://rpm.nodesource.com/{{ nodejs_rhel_rpm_dir }}/el/{{ ansible_distribution_major_version }}/{{ ansible_architecture }}/nodesource-release-el{{ ansible_distribution_major_version }}-1.noarch.rpm" + state: present + when: ansible_distribution_major_version|int < 7 + +- name: Add Nodesource repositories for Node.js (CentOS 7+). + yum: + name: "https://rpm.nodesource.com/{{ nodejs_rhel_rpm_dir }}/el/{{ ansible_distribution_major_version }}/{{ ansible_architecture }}/nodesource-release-el{{ ansible_distribution_major_version }}-1.noarch.rpm" + state: present + when: ansible_distribution_major_version|int >= 7 + +- name: Ensure Node.js and npm are installed. + yum: "name=nodejs-{{ nodejs_version|regex_replace('x', '') }}* state=present enablerepo='nodesource'" diff --git a/roles/geerlingguy.nodejs/templates/npm.sh.j2 b/roles/geerlingguy.nodejs/templates/npm.sh.j2 new file mode 100644 index 0000000..67caa78 --- /dev/null +++ b/roles/geerlingguy.nodejs/templates/npm.sh.j2 @@ -0,0 +1,3 @@ +export PATH={{ npm_config_prefix }}/bin:$PATH +export NPM_CONFIG_PREFIX={{ npm_config_prefix }} +export NODE_PATH=$NODE_PATH:{{ npm_config_prefix }}/lib/node_modules