hosts file and playbook
This commit is contained in:
parent
eae2d0f134
commit
627008ea6a
7
ansible.cfg
Normal file
7
ansible.cfg
Normal file
@ -0,0 +1,7 @@
|
||||
[defaults]
|
||||
inventory = ./inventory/hosts.yml
|
||||
remote_user = ubuntu
|
||||
private_key_file = ./private/astronomican.pem
|
||||
host_key_checking = False
|
||||
interpreter_python = auto_silent
|
||||
roles_path = ./roles
|
||||
12
inventory/hosts.yml
Normal file
12
inventory/hosts.yml
Normal file
@ -0,0 +1,12 @@
|
||||
all:
|
||||
children:
|
||||
oracle-cloud-instances:
|
||||
hosts:
|
||||
sublimePorte:
|
||||
ansible_host: 130.162.231.152
|
||||
ansible_user: ubuntu
|
||||
ansible_ssh_private_key_file: ./private/sublimeKey.pem
|
||||
webservices:
|
||||
ansible_host: 79.76.127.110
|
||||
ansible_user: ubuntu
|
||||
ansible_ssh_private_key_file: ./private/sublimeKey.pem
|
||||
21
playbooks/main.yml
Normal file
21
playbooks/main.yml
Normal file
@ -0,0 +1,21 @@
|
||||
- name: Set up reverse Proxy
|
||||
hosts: sublimePorte
|
||||
become: true
|
||||
roles:
|
||||
# - common
|
||||
# - zsh_with_style
|
||||
# - docker
|
||||
# - portainer
|
||||
#- network
|
||||
# - containers
|
||||
- name: Set up webservices
|
||||
hosts: webservices
|
||||
become: true
|
||||
roles:
|
||||
- gitea
|
||||
# - authentik
|
||||
# - common
|
||||
# - zsh_with_style
|
||||
# - docker
|
||||
# - portainer
|
||||
# - containers
|
||||
Loading…
x
Reference in New Issue
Block a user