parent
059640ab3b
commit
d0823432a2
1 changed files with 10 additions and 14 deletions
24
deploy.yml
24
deploy.yml
|
|
@ -10,11 +10,6 @@
|
|||
|
||||
tasks:
|
||||
## Docker
|
||||
#
|
||||
- name: Add Docker GPG apt Key
|
||||
apt_key:
|
||||
url: https://download.docker.com/linux/ubuntu/gpg
|
||||
state: absent
|
||||
|
||||
- name: Add Docker GPG apt Key (new)
|
||||
ansible.builtin.get_url:
|
||||
|
|
@ -24,7 +19,7 @@
|
|||
|
||||
- name: Add Docker Repository
|
||||
apt_repository:
|
||||
repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker_rel_ce_deb.asc] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable"
|
||||
repo: "deb [signed-by=/etc/apt/keyrings/docker_rel_ce_deb.asc] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable"
|
||||
state: present
|
||||
|
||||
- name: Update apt and install docker-ce
|
||||
|
|
@ -38,10 +33,10 @@
|
|||
name: python3-pip
|
||||
state: latest
|
||||
|
||||
- name: Container present test
|
||||
community.docker.docker_container:
|
||||
name: ansible_deployed
|
||||
state: absent
|
||||
# - name: Container present test
|
||||
# community.docker.docker_container:
|
||||
# name: ansible_deployed
|
||||
# state: absent
|
||||
|
||||
- name: Registry cache
|
||||
community.docker.docker_container:
|
||||
|
|
@ -100,14 +95,15 @@
|
|||
tags:
|
||||
- ufw
|
||||
|
||||
|
||||
- name: open all for own hosts
|
||||
- name: open network for own hosts
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
from: "{{ item }}"
|
||||
loop: "{{ anyops_trusted_hosts }}"
|
||||
#- 37.27.176.103 # muh.anyops.de
|
||||
# - 10.201.201.2 # wireguard
|
||||
- 37.27.176.103 # muh.anyops.de
|
||||
- 37.120.191.100 # service01.anyops.de
|
||||
- 152.53.229.139 # service02.anyops.de
|
||||
- 5.75.165.105 # gate1.stelb.cloud
|
||||
tags:
|
||||
- ufw
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue