add vault for nas server
This commit is contained in:
parent
234e9b6395
commit
9799d9c39c
0
inventory/group_vars/nas
Normal file
0
inventory/group_vars/nas
Normal file
6
inventory/group_vars/nas_vault
Normal file
6
inventory/group_vars/nas_vault
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
35333863396561393462653263323133343233346534616138616530643066323161656534653738
|
||||||
|
3335306466663636623236383435663337393466633437660a303961663331653463343933353966
|
||||||
|
35636161393663386137306561613965653438626432323865323233636662653333616532636665
|
||||||
|
3562333936366238640a646262373233363665366437653032303238313266356138343239303936
|
||||||
|
36663531303061663763653637333365303664666563353631303435633462343537
|
@ -1,4 +1,5 @@
|
|||||||
vps ansible_connection=ssh ansible_host=51.222.107.37 ansible_port=2424 ansible_user=valentin
|
vps ansible_connection=ssh ansible_host=51.222.107.37 ansible_port=2424 ansible_user=valentin
|
||||||
|
valentin-nas ansible_connection=ssh ansible_host=151.80.37.38 ansible_port=2424 ansible_user=valentin
|
||||||
localhost ansible_host=127.0.0.1
|
localhost ansible_host=127.0.0.1
|
||||||
|
|
||||||
[db]
|
[db]
|
||||||
@ -7,6 +8,12 @@ vps
|
|||||||
[db_vault:children]
|
[db_vault:children]
|
||||||
db
|
db
|
||||||
|
|
||||||
|
[nas]
|
||||||
|
valentin-nas
|
||||||
|
|
||||||
|
[nas_vault:children]
|
||||||
|
nas
|
||||||
|
|
||||||
[local]
|
[local]
|
||||||
localhost
|
localhost
|
||||||
|
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
---
|
---
|
||||||
|
- hosts: nas
|
||||||
|
remote_user: valentin
|
||||||
|
roles:
|
||||||
|
- registry
|
||||||
|
|
||||||
- hosts: db
|
- hosts: db
|
||||||
remote_user: valentin
|
remote_user: valentin
|
||||||
roles:
|
roles:
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
- name: Deploy registry
|
- name: Deploy registry
|
||||||
ansible.builtin.import_tasks: deploy-registry.yml
|
ansible.builtin.import_tasks: deploy-registry.yml
|
||||||
tags: ["create-registry", "deploy-regsitry"]
|
tags: ["create-registry", "deploy-registry"]
|
||||||
|
|
||||||
- name: Start registry
|
- name: Start registry
|
||||||
ansible.builtin.import_tasks: start-registry.yml
|
ansible.builtin.import_tasks: start-registry.yml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user