Compare commits
No commits in common. "06b673ec89cab327f634a79134a89862045232e8" and "083f93ec5f69dd615fe78beee07352f1277c7e09" have entirely different histories.
06b673ec89
...
083f93ec5f
@ -1,4 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
offline: true
|
|
||||||
profile: basic
|
|
@ -7,7 +7,7 @@ steps:
|
|||||||
image: python:3.10.6
|
image: python:3.10.6
|
||||||
commands:
|
commands:
|
||||||
- pip --disable-pip-version-check install ansible-core==2.15.0 ansible-lint==6.16.1 > /dev/null 2> /dev/null
|
- pip --disable-pip-version-check install ansible-core==2.15.0 ansible-lint==6.16.1 > /dev/null 2> /dev/null
|
||||||
- ansible-lint -c .ansible-lint ansible
|
- ansible-lint --offline ansible
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
# All services that are behind Caddy need to be in this network
|
# All services that are behind Caddy need to be in this network
|
||||||
- name: Create Caddy network
|
- name: Create Caddy network
|
||||||
become: true
|
become: true
|
||||||
community.docker.docker_network:
|
docker_network:
|
||||||
name: caddy-network
|
name: caddy-network
|
||||||
state: present
|
state: present
|
||||||
- name: Upload docker configuration
|
- name: Upload docker configuration
|
||||||
@ -107,7 +107,7 @@
|
|||||||
# that Gitea is reachable before those configurations are deployed.
|
# that Gitea is reachable before those configurations are deployed.
|
||||||
- name: Set up caddy and gitea containers
|
- name: Set up caddy and gitea containers
|
||||||
become: true
|
become: true
|
||||||
community.docker.docker_compose:
|
docker_compose:
|
||||||
project_src: "/etc/pbri/docker/{{ item.name }}"
|
project_src: "/etc/pbri/docker/{{ item.name }}"
|
||||||
state: "{{ item.state }}"
|
state: "{{ item.state }}"
|
||||||
build: true
|
build: true
|
||||||
@ -130,7 +130,7 @@
|
|||||||
delay: 5 # Retry every 5 seconds
|
delay: 5 # Retry every 5 seconds
|
||||||
- name: Set up other containers
|
- name: Set up other containers
|
||||||
become: true
|
become: true
|
||||||
community.docker.docker_compose:
|
docker_compose:
|
||||||
project_src: "/etc/pbri/docker/{{ item.name }}"
|
project_src: "/etc/pbri/docker/{{ item.name }}"
|
||||||
state: "{{ item.state }}"
|
state: "{{ item.state }}"
|
||||||
build: true
|
build: true
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
- name: Retrieve dpkg architecture
|
- name: Retrieve dpkg architecture
|
||||||
check_mode: false
|
check_mode: false
|
||||||
ansible.builtin.command: dpkg --print-architecture
|
ansible.builtin.command: dpkg --print-architecture
|
||||||
register: docker_dpkg_architecture
|
register: dpkg_architecture
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: Add Docker apt repository
|
- name: Add Docker apt repository
|
||||||
@ -36,7 +36,7 @@
|
|||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: docker.list.j2
|
src: docker.list.j2
|
||||||
dest: /etc/apt/sources.list.d/docker.list
|
dest: /etc/apt/sources.list.d/docker.list
|
||||||
mode: "u=rw,g=r,o=r"
|
mode: 0644
|
||||||
|
|
||||||
- name: Install Docker
|
- name: Install Docker
|
||||||
become: true
|
become: true
|
||||||
|
@ -1 +1 @@
|
|||||||
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
|
deb [arch={{ 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