Compare commits

...

2 Commits

Author SHA1 Message Date
06b673ec89 Apply ansible-lint fixes
Some checks failed
continuous-integration/drone/push Build is failing
2023-06-09 00:42:43 +02:00
84bfeb5c32 Add ansible-lint configuration file 2023-06-09 00:42:05 +02:00
5 changed files with 11 additions and 7 deletions

4
.ansible-lint Normal file
View File

@ -0,0 +1,4 @@
---
offline: true
profile: basic

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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