Compare commits
2 Commits
083f93ec5f
...
06b673ec89
Author | SHA1 | Date | |
---|---|---|---|
06b673ec89 | |||
84bfeb5c32 |
4
.ansible-lint
Normal file
4
.ansible-lint
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
|
||||
offline: true
|
||||
profile: basic
|
@ -7,7 +7,7 @@ steps:
|
||||
image: python:3.10.6
|
||||
commands:
|
||||
- pip --disable-pip-version-check install ansible-core==2.15.0 ansible-lint==6.16.1 > /dev/null 2> /dev/null
|
||||
- ansible-lint --offline ansible
|
||||
- ansible-lint -c .ansible-lint ansible
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
|
@ -35,7 +35,7 @@
|
||||
# All services that are behind Caddy need to be in this network
|
||||
- name: Create Caddy network
|
||||
become: true
|
||||
docker_network:
|
||||
community.docker.docker_network:
|
||||
name: caddy-network
|
||||
state: present
|
||||
- name: Upload docker configuration
|
||||
@ -107,7 +107,7 @@
|
||||
# that Gitea is reachable before those configurations are deployed.
|
||||
- name: Set up caddy and gitea containers
|
||||
become: true
|
||||
docker_compose:
|
||||
community.docker.docker_compose:
|
||||
project_src: "/etc/pbri/docker/{{ item.name }}"
|
||||
state: "{{ item.state }}"
|
||||
build: true
|
||||
@ -130,7 +130,7 @@
|
||||
delay: 5 # Retry every 5 seconds
|
||||
- name: Set up other containers
|
||||
become: true
|
||||
docker_compose:
|
||||
community.docker.docker_compose:
|
||||
project_src: "/etc/pbri/docker/{{ item.name }}"
|
||||
state: "{{ item.state }}"
|
||||
build: true
|
||||
|
@ -28,7 +28,7 @@
|
||||
- name: Retrieve dpkg architecture
|
||||
check_mode: false
|
||||
ansible.builtin.command: dpkg --print-architecture
|
||||
register: dpkg_architecture
|
||||
register: docker_dpkg_architecture
|
||||
changed_when: false
|
||||
|
||||
- name: Add Docker apt repository
|
||||
@ -36,7 +36,7 @@
|
||||
ansible.builtin.template:
|
||||
src: docker.list.j2
|
||||
dest: /etc/apt/sources.list.d/docker.list
|
||||
mode: 0644
|
||||
mode: "u=rw,g=r,o=r"
|
||||
|
||||
- name: Install Docker
|
||||
become: true
|
||||
|
@ -1 +1 @@
|
||||
deb [arch={{ dpkg_architecture.stdout }} signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable
|
||||
deb [arch={{ docker_dpkg_architecture.stdout }} signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable
|
||||
|
Loading…
x
Reference in New Issue
Block a user