hosts file and playbook

This commit is contained in:
Tobias J. Endres 2025-02-11 19:10:35 +01:00
parent eae2d0f134
commit 627008ea6a
3 changed files with 40 additions and 0 deletions

7
ansible.cfg Normal file
View 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
View 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
View 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