mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
Added role to make server accessible via SSH by Drone
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
---
|
---
|
||||||
ssh_user: 2martensAdmin
|
ssh_user: 2martensAdmin
|
||||||
admin_mail: admin@2martens.de
|
admin_mail: admin@2martens.de
|
||||||
|
drone_ssh_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGuTfzwAfRQCGa1zLsRSX5IGl4A/XHZ7p7LFRfLMA78J drone@devops
|
||||||
|
|||||||
@@ -2,5 +2,3 @@
|
|||||||
ssh_user: 2martensAdmin
|
ssh_user: 2martensAdmin
|
||||||
admin_mail: admin@2martens.de
|
admin_mail: admin@2martens.de
|
||||||
ci_domain: ci.2martens.de
|
ci_domain: ci.2martens.de
|
||||||
gitea_user: 2martens
|
|
||||||
gitea_url: https://git.2martens.de
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
ssh_user: giteajim
|
ssh_user: giteajim
|
||||||
host_architecture: amd64
|
host_architecture: amd64
|
||||||
|
gitea_user: 2martens
|
||||||
|
gitea_url: https://git.2martens.de
|
||||||
gitea_domain: git.2martens.de
|
gitea_domain: git.2martens.de
|
||||||
gitea_port: 64745
|
gitea_port: 64745
|
||||||
gitea_name: 2martens Gitea
|
gitea_name: 2martens Gitea
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[setup]
|
[setup]
|
||||||
devops ansible_host=localhost ansible_connection=local ansible_python_interpreter=python3
|
devops ansible_host=localhost ansible_connection=local ansible_python_interpreter=python3
|
||||||
applications ansible_host=localhost ansible_connection=local ansible_python_interpreter=python3
|
application_server ansible_host=localhost ansible_connection=local ansible_python_interpreter=python3
|
||||||
|
|
||||||
[ci]
|
[ci]
|
||||||
devops ansible_host=49.12.69.146 ansible_python_interpreter=python3
|
devops ansible_host=49.12.69.146 ansible_python_interpreter=python3
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: Set up apache for drone
|
- name: Set up apache for Drone
|
||||||
ansible.builtin.import_tasks: apache.yml
|
ansible.builtin.import_tasks: apache.yml
|
||||||
- name: Set up drone
|
- name: Set up Drone
|
||||||
ansible.builtin.import_tasks: drone.yml
|
ansible.builtin.import_tasks: drone.yml
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
- name: Add SSH key for Drone
|
||||||
|
ansible.posix.authorized_key:
|
||||||
|
key: "{{ drone_ssh_key }}"
|
||||||
|
user: "{{ ssh_user }}"
|
||||||
|
state: present
|
||||||
@@ -32,6 +32,7 @@
|
|||||||
become_method: ansible.builtin.sudo
|
become_method: ansible.builtin.sudo
|
||||||
remote_user: "{{ ssh_user }}"
|
remote_user: "{{ ssh_user }}"
|
||||||
roles:
|
roles:
|
||||||
|
- drone_accessible
|
||||||
- docker
|
- docker
|
||||||
- nginx
|
- nginx
|
||||||
- letsencrypt
|
- letsencrypt
|
||||||
|
|||||||
Reference in New Issue
Block a user