diff --git a/Ansible/examples/host_vars/rt-ha/hosts.yml b/Ansible/examples/host_vars/rt-ha/hosts.yml index 66a6be5..5a702ac 100644 --- a/Ansible/examples/host_vars/rt-ha/hosts.yml +++ b/Ansible/examples/host_vars/rt-ha/hosts.yml @@ -2,14 +2,14 @@ all: vars: ansible_user: "ubuntu" - ansible_ssh_private_key_file: "/Users/jefff/.ssh/ansible-priv.pem" + ansible_ssh_private_key_file: "{{ lookup('env', 'ansible_key') }}" children: database: hosts: #artifactory database 52.86.32.79: db_users: - - { db_user: "artifactory", db_password: "Art1fAct0ry" } + - { db_user: "artifactory", db_password: "{{ lookup('env', 'artifactory_password') }}" } dbs: - { db_name: "artifactory", db_owner: "artifactory" } artifactory: @@ -23,7 +23,7 @@ all: db_driver: "org.postgresql.Driver" db_url: "jdbc:postgresql://10.0.0.160:5432/artifactory" db_user: "artifactory" - db_password: "Art1fAct0ry" + db_password: "{{ lookup('env', 'artifactory_password') }}" server_name: "ec2-100-25-104-198.compute-1.amazonaws.com" certificate: | -----BEGIN CERTIFICATE----- diff --git a/Ansible/examples/host_vars/rt-xray-ha/hosts.yml b/Ansible/examples/host_vars/rt-xray-ha/hosts.yml index 796305c..cbb3ef7 100644 --- a/Ansible/examples/host_vars/rt-xray-ha/hosts.yml +++ b/Ansible/examples/host_vars/rt-xray-ha/hosts.yml @@ -2,7 +2,7 @@ all: vars: ansible_user: "ubuntu" - ansible_ssh_private_key_file: "/Users/jefff/.ssh/ansible-priv.pem" + ansible_ssh_private_key_file: "{{ lookup('env', 'ansible_key') }}" children: database: hosts: @@ -11,13 +11,13 @@ all: dbs: - { db_name: "artifactory", db_owner: "artifactory" } db_users: - - { db_user: "artifactory", db_password: "Art1fAct0ry" } + - { db_user: "artifactory", db_password: "{{ lookup('env', 'artifactory_password') }}" } #xray database 100.25.152.93: dbs: - { db_name: "xraydb", db_owner: "xray" } db_users: - - { db_user: "xray", db_password: "xray" } + - { db_user: "xray", db_password: "{{ lookup('env', 'xray_password') }}" } artifactory: vars: artifactory_version: 7.4.1 @@ -29,7 +29,7 @@ all: db_driver: "org.postgresql.Driver" db_url: "jdbc:postgresql://10.0.0.51:5432/artifactory" db_user: "artifactory" - db_password: "Art1fAct0ry" + db_password: "{{ lookup('env', 'artifactory_password') }}" server_name: "ec2-18-210-33-94.compute-1.amazonaws.com" children: primary: @@ -51,7 +51,7 @@ all: db_driver: "org.postgresql.Driver" db_url: "postgres://10.0.0.5:5432/xraydb?sslmode=disable" db_user: "xray" - db_password: "xray" + db_password: "{{ lookup('env', 'xray_password') }}" hosts: # 34.229.56.166: 54.237.68.180 diff --git a/Ansible/examples/host_vars/rt-xray/hosts.yml b/Ansible/examples/host_vars/rt-xray/hosts.yml index 3fac82c..8a844a5 100644 --- a/Ansible/examples/host_vars/rt-xray/hosts.yml +++ b/Ansible/examples/host_vars/rt-xray/hosts.yml @@ -2,7 +2,7 @@ all: vars: ansible_user: "ubuntu" - ansible_ssh_private_key_file: "/Users/jefff/.ssh/ansible-priv.pem" + ansible_ssh_private_key_file: "{{ lookup('env', 'ansible_key') }}" children: database: hosts: @@ -11,8 +11,8 @@ all: - { db_name: "artifactory", db_owner: "artifactory" } - { db_name: "xraydb", db_owner: "xray" } db_users: - - { db_user: "artifactory", db_password: "Art1fAct0ry" } - - { db_user: "xray", db_password: "xray" } + - { db_user: "artifactory", db_password: "{{ lookup('env', 'artifactory_password') }}" } + - { db_user: "xray", db_password: "{{ lookup('env', 'xray_password') }}" } artifactory: hosts: 54.237.207.135: @@ -29,7 +29,7 @@ all: db_driver: "org.postgresql.Driver" db_url: "jdbc:postgresql://10.0.0.59:5432/artifactory" db_user: "artifactory" - db_password: "Art1fAct0ry" + db_password: "{{ lookup('env', 'artifactory_password') }}" server_name: "ec2-54-237-207-135.compute-1.amazonaws.com" xray: hosts: @@ -42,4 +42,4 @@ all: db_driver: "org.postgresql.Driver" db_url: "postgres://10.0.0.59:5432/xraydb?sslmode=disable" db_user: "xray" - db_password: "xray" + db_password: "{{ lookup('env', 'xray_password') }}" diff --git a/Ansible/examples/host_vars/ssl/hosts.yml b/Ansible/examples/host_vars/ssl/hosts.yml index c51aa1b..eaf20e1 100644 --- a/Ansible/examples/host_vars/ssl/hosts.yml +++ b/Ansible/examples/host_vars/ssl/hosts.yml @@ -2,13 +2,13 @@ all: vars: ansible_user: "ubuntu" - ansible_ssh_private_key_file: "/Users/jefff/.ssh/ansible-priv.pem" + ansible_ssh_private_key_file: "{{ lookup('env', 'ansible_key') }}" children: database: hosts: 52.86.32.79: db_users: - - { db_user: "artifactory", db_password: "Art1fAct0ry" } + - { db_user: "artifactory", db_password: "{{ lookup('env', 'artifactory_password') }}" } dbs: - { db_name: "artifactory", db_owner: "artifactory" } primary: @@ -28,7 +28,7 @@ all: db_driver: "org.postgresql.Driver" db_url: "jdbc:postgresql://10.0.0.160:5432/artifactory" db_user: "artifactory" - db_password: "Art1fAct0ry" + db_password: "{{ lookup('env', 'artifactory_password') }}" server_name: "ec2-100-25-104-198.compute-1.amazonaws.com" certificate: | -----BEGIN CERTIFICATE----- diff --git a/Ansible/examples/host_vars/xray/hosts.yml b/Ansible/examples/host_vars/xray/hosts.yml index a4acffc..e48a9fd 100644 --- a/Ansible/examples/host_vars/xray/hosts.yml +++ b/Ansible/examples/host_vars/xray/hosts.yml @@ -13,6 +13,6 @@ all: db_driver: "org.postgresql.Driver" db_url: "postgres://10.0.0.5:5432/xraydb?sslmode=disable" db_user: "xray" - db_password: "xray" + db_password: "{{ lookup('env', 'xray_password') }}" hosts: 3.17.132.222