diff --git a/inventory/group_vars/db b/inventory/group_vars/db index 3be3a64..ff36bca 100644 --- a/inventory/group_vars/db +++ b/inventory/group_vars/db @@ -1,3 +1,4 @@ +msg: db postgres_url: db.valczeryba.ovh postgres_db: toto postgres_port: 54321 diff --git a/inventory/group_vars/drone b/inventory/group_vars/drone index da37021..3d573ae 100644 --- a/inventory/group_vars/drone +++ b/inventory/group_vars/drone @@ -1,9 +1,9 @@ drone_gitea_server: https://git.valczeryba.ovh drone_server_host: drone.valczeryba.ovh drone_agents_enabled: true -drone_server_host: localhost:8000 drone_server_proto: http drone_tls_autocert: false drone_open: false drone_host: http://localhost:8000 -drone_rpc_server: drone-server:8000 \ No newline at end of file +drone_rpc_server: drone-server:8000 +msg: drone \ No newline at end of file diff --git a/inventory/group_vars/registry b/inventory/group_vars/registry index 95fd182..b18e8ac 100644 --- a/inventory/group_vars/registry +++ b/inventory/group_vars/registry @@ -1,4 +1,4 @@ - +msg: registry project_src: "/home/valentin/registry" project_directory: diff --git a/inventory/hosts b/inventory/hosts index 4f64e5c..96d8ffc 100644 --- a/inventory/hosts +++ b/inventory/hosts @@ -1,5 +1,6 @@ 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 +drone-host ansible_connection=ssh ansible_host=151.80.37.38 ansible_port=2424 ansible_user=valentin localhost ansible_host=127.0.0.1 [db] @@ -12,14 +13,14 @@ db valentin-nas -[registry:children] -nas +[registry] +valentin-nas -[drone:children] -nas +[drone] +drone-host [drone_vault:children] -nas +drone [nas_vault:children] nas diff --git a/playbook.yml b/playbook.yml index 91ed9ea..ab57557 100644 --- a/playbook.yml +++ b/playbook.yml @@ -1,9 +1,10 @@ --- -- hosts: registry db +- hosts: registry db drone remote_user: valentin roles: - server + - hosts: local remote_user: valentin roles: diff --git a/server/tasks/debug.yml b/server/tasks/debug.yml new file mode 100644 index 0000000..2d9a14a --- /dev/null +++ b/server/tasks/debug.yml @@ -0,0 +1,3 @@ +- name: debug + debug: + msg: "coucou {{ msg }}" \ No newline at end of file diff --git a/server/tasks/main.yml b/server/tasks/main.yml index c60758b..c4cd002 100644 --- a/server/tasks/main.yml +++ b/server/tasks/main.yml @@ -1,6 +1,11 @@ --- # tasks file for server + +- name: Debug role + ansible.builtin.import_tasks: debug.yml + tags: ["debug"] + - name: Deploy services ansible.builtin.import_tasks: deploy.yml tags: ["deploy", "create"]