Deployer Tasks: Wordpress - Fix Issue (2)

This commit is contained in:
Christer Warén 2024-05-07 14:44:30 +03:00
parent 9382409b74
commit 53ef60eb42

View File

@ -160,7 +160,7 @@
- name: "Deployer - Wordpress - Create Folder" - name: "Deployer - Wordpress - Create Folder"
file: file:
path: "/root/wordpress" path: "/root/wordpress/wp-content"
state: directory state: directory
tags: tags:
- wordpress - wordpress
@ -172,7 +172,7 @@
force: on force: on
register: deployerTask4 register: deployerTask4
- name: "Deployer - Workpress - Run Container" - name: "Deployer - Wordpress - Run Container"
containers.podman.podman_container: containers.podman.podman_container:
name: wordpress name: wordpress
image: docker.io/library/wordpress:latest image: docker.io/library/wordpress:latest
@ -180,16 +180,16 @@
recreate: on recreate: on
network: host network: host
volumes: volumes:
- "/var/www/html/wp-content/:/var/www/html/wp-content/" - "/root/wordpress/wp-content/:/var/www/html/wp-content/"
env: env:
WORDPRESS_DB_HOST: "127.0.0.1" WORDPRESS_DB_HOST: "127.0.0.1"
WORDPRESS_DB_USER: "mkj" WORDPRESS_DB_USER: "mkj"
WORDPRESS_DB_PASSWORD: "{{ secrets.mariadb.users.mkj.password }}" WORDPRESS_DB_PASSWORD: "{{ secrets.mariadb.users.mkj.password }}"
WORDPRESS_DB_NAME: "mkj" WORDPRESS_DB_NAME: "mkj"
WORDPRESS_AUTH_KEY: "{{ secrets.wordpress.keys.auth }}" WORDPRESS_AUTH_KEY: "{{ secrets.wordpress['keys'].auth }}"
WORDPRESS_SECURE_AUTH_KEY: "{{ secrets.wordpress.keys.secure_auth }}" WORDPRESS_SECURE_AUTH_KEY: "{{ secrets.wordpress['keys'].secure_auth }}"
WORDPRESS_LOGGED_IN_KEY: "{{ secrets.wordpress.keys.logged_in }}" WORDPRESS_LOGGED_IN_KEY: "{{ secrets.wordpress['keys'].logged_in }}"
WORDPRESS_NONCE_KEY: "{{ secrets.wordpress.keys.nonce }}" WORDPRESS_NONCE_KEY: "{{ secrets.wordpress['keys'].nonce }}"
WORDPRESS_AUTH_SALT: "{{ secrets.wordpress.salt.auth }}" WORDPRESS_AUTH_SALT: "{{ secrets.wordpress.salt.auth }}"
WORDPRESS_SECURE_AUTH_SALT: "{{ secrets.wordpress.salt.secure_auth }}" WORDPRESS_SECURE_AUTH_SALT: "{{ secrets.wordpress.salt.secure_auth }}"
WORDPRESS_LOGGED_IN_SALT: "{{ secrets.wordpress.salt.logged_in }}" WORDPRESS_LOGGED_IN_SALT: "{{ secrets.wordpress.salt.logged_in }}"