diff --git a/ansible.cfg b/ansible.cfg index 7cab009..70ee014 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,5 +1,5 @@ [defaults] -inventory = inventories/xxx +inventory = inventories/matte hash_behaviour = merge gathering = smart transport = local diff --git a/inventories/.gitkeep b/inventories/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/inventories/matte/group_vars/arcadiamc.yml b/inventories/matte/group_vars/arcadiamc.yml new file mode 100644 index 0000000..f22a312 --- /dev/null +++ b/inventories/matte/group_vars/arcadiamc.yml @@ -0,0 +1,6 @@ +$ANSIBLE_VAULT;1.2;AES256;matte +62346136653335363162326162383931386537613938323936313137303431373664326165613562 +3833613232666134346465313164393265313866396438640a396463376165633535636261656161 +65666130663862303234623932643131353539623635306266663330626666383533363039653737 +3736626335343832360a373961343766633963363766393333396366343737333630636531646362 +6564 diff --git a/inventories/matte/host_vars/rainbow.devices.waren.io.yml b/inventories/matte/host_vars/rainbow.devices.waren.io.yml new file mode 100644 index 0000000..ad82673 --- /dev/null +++ b/inventories/matte/host_vars/rainbow.devices.waren.io.yml @@ -0,0 +1,6 @@ +$ANSIBLE_VAULT;1.2;AES256;matte +65326434306632636332646164346332366430303930656231353538613062323762303131346630 +3264653933373331373638363134633562643932326333660a393065303336306162373733316634 +61333437313261393336353235323862353538386563356132393532623439383231653665323163 +3665323733306635640a353366346639346133646331653637353530653431623132343932616465 +3466 diff --git a/inventories/matte/hosts.yml b/inventories/matte/hosts.yml new file mode 100644 index 0000000..710ded5 --- /dev/null +++ b/inventories/matte/hosts.yml @@ -0,0 +1,9 @@ +--- +matte: + children: + arcadiamc: + hosts: + rainbow.devices.waren.io: + vars: + ansible_user: wxl62975 + ansible_ssh_common_args: "-o StrictHostKeyChecking=accept-new -o LogLevel=error" diff --git a/protect.sh b/protect.sh index 3bb5743..d833b10 100755 --- a/protect.sh +++ b/protect.sh @@ -10,12 +10,12 @@ action=$1 encrypt() { echo "${underline}Encrypting...${nounderline}" - execute "ansible-vault encrypt --vault-id default@vault/mkj" + execute "ansible-vault encrypt --vault-id matte@vault/matte" } decrypt() { echo "${underline}Decrypting...${nounderline}" - execute "ansible-vault decrypt --vault-id default@vault/mkj" + execute "ansible-vault decrypt --vault-id matte@vault/matte" } list() {