Simplify the actual role by using Docker
This commit is contained in:
parent
8b61ae28a4
commit
e4bdd81823
4 changed files with 14 additions and 37 deletions
|
|
@ -1,25 +1,18 @@
|
||||||
---
|
---
|
||||||
- name: Include user role
|
- name: Create a volume
|
||||||
ansible.builtin.include_role:
|
|
||||||
name: user
|
|
||||||
vars:
|
|
||||||
user_username: "{{ actual_username }}"
|
|
||||||
user_password: "{{ actual_password }}"
|
|
||||||
- name: Create the actual container
|
|
||||||
ansible.builtin.include_role:
|
|
||||||
name: podman-container
|
|
||||||
apply:
|
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ actual_username }}"
|
community.docker.docker_volume:
|
||||||
vars:
|
name: actual_data
|
||||||
podman_container_name: actual-server
|
- name: Install the container
|
||||||
podman_container_image: docker.io/actualbudget/actual-server
|
become: true
|
||||||
podman_container_tag: "{{ actual_version }}"
|
community.docker.docker_container:
|
||||||
podman_container_publish:
|
name: actual-server
|
||||||
- 127.0.0.1:5006:5006
|
image: "docker.io/actualbudget/actual-server:{{ actual_version }}"
|
||||||
podman_simple_container_volumes:
|
ports:
|
||||||
- name: actual_data
|
- "127.0.0.1:5006:5006/tcp"
|
||||||
mnt: /data
|
mounts:
|
||||||
|
- source: actual_data
|
||||||
|
target: /data
|
||||||
- name: Include simple-reverse-proxy role
|
- name: Include simple-reverse-proxy role
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
name: simple-reverse-proxy
|
name: simple-reverse-proxy
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,2 @@
|
||||||
---
|
---
|
||||||
actual_username: actual
|
|
||||||
actual_version: 24.11.0
|
actual_version: 24.11.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
$ANSIBLE_VAULT;1.1;AES256
|
|
||||||
33376134646463343235646461303131626139663865333436646535383064383437616231323334
|
|
||||||
6162306132343165666134323966363739333638353332620a663034326361383233356639646463
|
|
||||||
65386537303530363335363234636464626330343864363162626233613430633430643334396636
|
|
||||||
6635653735633730310a343036363136333933653561663839613238336338633061613534326536
|
|
||||||
39343563343863643636616130316235316236656531626433613432303561383834333764336534
|
|
||||||
35636438613832643433346135623934323964346464383931353539633464333038626561643963
|
|
||||||
633839343438623261343239613534393233
|
|
||||||
|
|
@ -11,13 +11,6 @@
|
||||||
dest: "/etc/nginx/conf.d/{{ simple_reverse_proxy_internal_subdomain }}.conf"
|
dest: "/etc/nginx/conf.d/{{ simple_reverse_proxy_internal_subdomain }}.conf"
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
notify: Restart Nginx
|
notify: Restart Nginx
|
||||||
# - name: Allow https through firewall
|
|
||||||
# become: true
|
|
||||||
# community.general.ufw:
|
|
||||||
# rule: allow
|
|
||||||
# port: https
|
|
||||||
# proto: tcp
|
|
||||||
# notify: Restart ufw
|
|
||||||
- name: Debug
|
- name: Debug
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: >-
|
msg: >-
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue