mirror of
https://github.com/MatteZ02/infra.git
synced 2024-12-22 00:13:49 +00:00
Add ArcadiaMC group and host
This commit is contained in:
parent
2c3303ac1c
commit
1b0a05421e
@ -1,5 +1,5 @@
|
|||||||
[defaults]
|
[defaults]
|
||||||
inventory = inventories/xxx
|
inventory = inventories/matte
|
||||||
hash_behaviour = merge
|
hash_behaviour = merge
|
||||||
gathering = smart
|
gathering = smart
|
||||||
transport = local
|
transport = local
|
||||||
|
6
inventories/matte/group_vars/arcadiamc.yml
Normal file
6
inventories/matte/group_vars/arcadiamc.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
$ANSIBLE_VAULT;1.2;AES256;matte
|
||||||
|
62346136653335363162326162383931386537613938323936313137303431373664326165613562
|
||||||
|
3833613232666134346465313164393265313866396438640a396463376165633535636261656161
|
||||||
|
65666130663862303234623932643131353539623635306266663330626666383533363039653737
|
||||||
|
3736626335343832360a373961343766633963363766393333396366343737333630636531646362
|
||||||
|
6564
|
6
inventories/matte/host_vars/rainbow.devices.waren.io.yml
Normal file
6
inventories/matte/host_vars/rainbow.devices.waren.io.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
$ANSIBLE_VAULT;1.2;AES256;matte
|
||||||
|
65326434306632636332646164346332366430303930656231353538613062323762303131346630
|
||||||
|
3264653933373331373638363134633562643932326333660a393065303336306162373733316634
|
||||||
|
61333437313261393336353235323862353538386563356132393532623439383231653665323163
|
||||||
|
3665323733306635640a353366346639346133646331653637353530653431623132343932616465
|
||||||
|
3466
|
9
inventories/matte/hosts.yml
Normal file
9
inventories/matte/hosts.yml
Normal file
@ -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"
|
@ -10,12 +10,12 @@ action=$1
|
|||||||
|
|
||||||
encrypt() {
|
encrypt() {
|
||||||
echo "${underline}Encrypting...${nounderline}"
|
echo "${underline}Encrypting...${nounderline}"
|
||||||
execute "ansible-vault encrypt --vault-id default@vault/mkj"
|
execute "ansible-vault encrypt --vault-id matte@vault/matte"
|
||||||
}
|
}
|
||||||
|
|
||||||
decrypt() {
|
decrypt() {
|
||||||
echo "${underline}Decrypting...${nounderline}"
|
echo "${underline}Decrypting...${nounderline}"
|
||||||
execute "ansible-vault decrypt --vault-id default@vault/mkj"
|
execute "ansible-vault decrypt --vault-id matte@vault/matte"
|
||||||
}
|
}
|
||||||
|
|
||||||
list() {
|
list() {
|
||||||
|
Loading…
Reference in New Issue
Block a user