fix error regisster page
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Fichier: install_php_83_symfony_pgsql.yml
|
||||
# Fichier: install_php_83_symfony_pgsql.yml
|
||||
|
||||
- name: Deploy application
|
||||
hosts: webservers
|
||||
@@ -6,21 +6,12 @@
|
||||
gather_facts: true
|
||||
|
||||
vars:
|
||||
db_name: "mainframe"
|
||||
db_user: "mainframe"
|
||||
db_password: "mainframe"
|
||||
redis_password: "mainframe"
|
||||
redis_port: "20100"
|
||||
# Assurez-vous que 'path' est définie dans votre inventaire ou comme extra-var
|
||||
# Exemple: path: /var/www/mainframe/app
|
||||
|
||||
db_name: "e-cosplay"
|
||||
db_user: "e-cosplay"
|
||||
db_password: "e-cosplay"
|
||||
redis_password: "e-cosplay"
|
||||
redis_port: "20101"
|
||||
tasks:
|
||||
- name: Send a message to the Discord channel
|
||||
community.general.discord:
|
||||
webhook_id: "1421437443688890500"
|
||||
webhook_token: "DPSuS00Ian6O0lQw-1aDQPkVB19so4AA5zaLN_nALs3fDGah1KSLBWys_CYpsc33PGIG"
|
||||
content: "Mise à jour du mainframe"
|
||||
|
||||
- name: Installer le support ACL pour corriger les permissions de 'become_user'
|
||||
ansible.builtin.apt:
|
||||
name: acl
|
||||
@@ -107,8 +98,6 @@
|
||||
- "{{ path }}/var"
|
||||
- "{{ path }}/var/log" # Specific for log, though var/log might be created by composer later
|
||||
- "{{ path }}/public/media" # For uploads
|
||||
- "{{ path }}/public/storage" # For uploads
|
||||
- "{{ path }}/public/tmp-sign" # For uploads
|
||||
|
||||
- name: Exécuter 'composer install' dans le répertoire de l'application
|
||||
ansible.builtin.command: composer install --no-dev --optimize-autoloader
|
||||
@@ -167,7 +156,7 @@
|
||||
- name: Supervisor config
|
||||
ansible.builtin.template:
|
||||
src: supervisor.j2
|
||||
dest: "/etc/supervisor/conf.d/mainframe.conf"
|
||||
dest: "/etc/supervisor/conf.d/e-cosplay.conf"
|
||||
mode: '0644'
|
||||
|
||||
- name: Reread Supervisor configuration
|
||||
@@ -185,7 +174,7 @@
|
||||
- name: Generate Caddy site configuration
|
||||
ansible.builtin.template:
|
||||
src: caddy.j2
|
||||
dest: "/etc/caddy/sites/mainframe.conf"
|
||||
dest: "/etc/caddy/sites/e-cosplay.conf"
|
||||
mode: '0644'
|
||||
|
||||
- name: Reload Caddy to apply new configuration
|
||||
@@ -211,82 +200,6 @@
|
||||
become: false
|
||||
args:
|
||||
chdir: "{{ path }}"
|
||||
when: ansible_os_family == "Debian" # Added a when condition here, often missed
|
||||
- name: "Execute created subcriber link"
|
||||
cron:
|
||||
name: "Mainframe - subcriber link"
|
||||
minute: "0"
|
||||
hour: "*"
|
||||
job: "sh {{ path }}/script/demande/run.sh"
|
||||
user: root
|
||||
|
||||
- name: "Cron Task purge customer delete"
|
||||
cron:
|
||||
name: "Mainframe - Purge customer"
|
||||
minute: "0"
|
||||
hour: "21"
|
||||
job: "php {{ path }}/bin/console mainframe:cron:customer"
|
||||
user: root
|
||||
- name: "Cron Task purge customer delete"
|
||||
cron:
|
||||
name: "Mainframe - Check Server mail"
|
||||
minute: "0"
|
||||
hour: "6"
|
||||
job: "php {{ path }}/bin/console mainframe:mailserver:check"
|
||||
user: root
|
||||
- name: "Cron Task purge email delete"
|
||||
cron:
|
||||
name: "Mainframe - Purge customer"
|
||||
minute: "0"
|
||||
hour: "21"
|
||||
job: "php {{ path }}/bin/console mainframe:cron:email"
|
||||
user: root
|
||||
- name: "Cron Task check avis de payment"
|
||||
cron:
|
||||
name: "Mainframe - Check Avis"
|
||||
minute: "0"
|
||||
hour: "6"
|
||||
job: "php {{ path }}/bin/console mainframe:check:avispayment"
|
||||
user: root
|
||||
- name: "Cron Task check Auto de payment"
|
||||
cron:
|
||||
name: "Mainframe - Auto Avis"
|
||||
minute: "0"
|
||||
hour: "7"
|
||||
job: "php {{ path }}/bin/console mainframe:auto:avispayment"
|
||||
user: root
|
||||
- name: "Cron Task sync"
|
||||
ansible.builtin.cron:
|
||||
name: "Mainframe - Sync"
|
||||
minute: "0"
|
||||
hour: "*"
|
||||
user: "root"
|
||||
job: "php {{ path }}/bin/console mainframe:cron:sync"
|
||||
state: present
|
||||
- name: "Cron Task sync"
|
||||
ansible.builtin.cron:
|
||||
name: "Mainframe - Delete tmp"
|
||||
minute: "30"
|
||||
hour: "*"
|
||||
user: "root"
|
||||
job: "php {{ path }}/bin/console mainframe:tempfile:delete"
|
||||
state: present
|
||||
- name: "Mail event today"
|
||||
ansible.builtin.cron:
|
||||
name: "Mainframe - Event Today"
|
||||
minute: "50"
|
||||
hour: "23"
|
||||
user: "root"
|
||||
job: "php {{ path }}/bin/console mainframe:event:today"
|
||||
state: present
|
||||
- name: "Backup - Mainframe"
|
||||
ansible.builtin.cron:
|
||||
name: "Mainframe - Event Today"
|
||||
minute: "0"
|
||||
hour: "7,14,17"
|
||||
user: "root"
|
||||
job: "php {{ path }}/bin/console mainframe:backup"
|
||||
state: present
|
||||
- name: Set correct permissions for Symfony cache and logs directories
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
@@ -299,15 +212,3 @@
|
||||
- "{{ path }}/var/cache"
|
||||
- "{{ path }}/var/log"
|
||||
- "{{ path }}/public/media"
|
||||
- "{{ path }}/public/storage" # For uploads
|
||||
- "{{ path }}/public/tmp-sign" # For uploads
|
||||
- name: Maintenance mode artemis off
|
||||
ansible.builtin.command: php bin/console mainframe:maintenance artemis false
|
||||
become: false
|
||||
args:
|
||||
chdir: "{{ path }}"
|
||||
- name: Maintenance mode api off
|
||||
ansible.builtin.command: php bin/console mainframe:maintenance api false
|
||||
become: false
|
||||
args:
|
||||
chdir: "{{ path }}"
|
||||
|
||||
Reference in New Issue
Block a user