Remove all references to ansiblehost

This commit is contained in:
Salt 2020-06-17 09:26:13 -05:00
parent 531b2e19dc
commit 62ea91fc7f
7 changed files with 5 additions and 56 deletions

View File

@ -1,8 +0,0 @@
[defaults]
inventory = inventory
private_key_file = ~/.ssh/ansible
ssh_extra_args =-o ForwardAgent=yes -o StrictHostKeyChecking=no
host_key_checking = false
deprecation_warnings = false
pipelining = true
interpreter_python = python3

View File

@ -1,7 +0,0 @@
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- hosts: ansiblehosts
roles:
- role: ansiblehost
tags: [ ansiblehost ]

View File

@ -1,2 +0,0 @@
# vim:ft=ansible:
pullplaybook: "site.yml"

View File

@ -1,6 +0,0 @@
$ANSIBLE_VAULT;1.1;AES256
31383561303637303735386663306631333063623336643030643634333262336664363461613239
6230623439393465656161663432393732633662383833640a373433343236353835363130653937
31346233663237383666306536633962613534623735366531666561656335393964316230633161
3930636537313364380a376432363431346636363565383734613638316161643036623636656532
66333038393738663464343534633766643734393165626538633962376161376262

View File

@ -1,4 +0,0 @@
---
allow_duplicates: no
dependencies:
- role: localansible

View File

@ -1,23 +0,0 @@
#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: Set up system for Ansible
block:
- name: Copy Ansible password file
copy:
src: ansiblevaultpass
dest: /root/ansiblevaultpass
mode: "0600"
- name: Create system copy of Ansible repo
git:
repo: "https://git.9iron.club/salt/ansible"
dest: /opt/ansible-repo
update: yes
- name: Set up pull and run cronjob
cron:
minute: "0"
hour: "*/12"
name: ansible-pull
job: "cd /opt/ansible-repo && ANSIBLE_CONFIG=/opt/ansible-repo/ansiblehost-config.cfg HOME=/root /usr/local/bin/ansible-playbook \"{{ pullplaybook }}\" --vault-password-file /root/ansiblevaultpass > /var/log/ansible-pull.log 2>&1"
disabled: yes
become: true

View File

@ -4,13 +4,13 @@
- hosts: all
roles:
- role: ansible-pull
tags: [ common ]
tags: [ common, pull ]
- role: common
tags: [ common ]
tags: [ common, pull ]
- role: zerotier
tags: [ common, zerotier ]
tags: [ common, zerotier, pull ]
- role: influxdb
tags: [ common, influxdb ]
tags: [ common, influxdb, pull ]
- role: user
vars:
user_username: salt
@ -25,8 +25,7 @@
62383065653836366431316461663862393130653761643937376565366435646665313961663534
64303363653631653433343361616635373966326433663466636164613062343561333036613937
35616666633737356331653632323639373330396433366639326466373639313630
tags: [ common, user ]
tags: [ common, user, pull ]
- import_playbook: home.yml
- import_playbook: webservers.yml
- import_playbook: gameservers.yml
- import_playbook: ansiblehosts.yml