Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pâquerette
Infrastructure
Ansible Pâquerette
Commits
989b0698
Verified
Commit
989b0698
authored
Jul 01, 2022
by
Julien Gomes Dias
Browse files
Ajout de php_version pour prendre la version necessaire
parent
204ca3de
Changes
3
Hide whitespace changes
Inline
Side-by-side
roles/nextcloud_instance/tasks/install.yml
View file @
989b0698
...
...
@@ -71,7 +71,7 @@
name
:
"
{{
app_instance_root
}}/cron.php
>/dev/null
2>&1"
user
:
"
www-data"
minute
:
"
*/15"
job
:
"
php
-f
{{
app_instance_root
}}/cron.php
>/dev/null
2>&1"
job
:
"
php
{{
php_version
}}
-f
{{
app_instance_root
}}/cron.php
>/dev/null
2>&1"
-
name
:
"
test
absence
of
config.php
(determines
first
install)"
stat
:
...
...
roles/nextcloud_instance/tasks/maintenance.yml
View file @
989b0698
...
...
@@ -7,7 +7,7 @@
weekday
:
"
1"
hour
:
"
4"
minute
:
"
0"
job
:
"
php
-f
{{
app_instance_root
}}/occ
app:update
--all
>/dev/null
2>&1"
job
:
"
php
{{
php_version
}}
-f
{{
app_instance_root
}}/occ
app:update
--all
>/dev/null
2>&1"
-
name
:
"
template
for
maintenance
script"
template
:
...
...
roles/nextcloud_instance/tasks/upgrade.yml
View file @
989b0698
...
...
@@ -44,7 +44,7 @@
name
:
_app_backup_instance
-
name
:
"
backup
app
list"
shell
:
"
php
{{
www_root
}}/{{
app_instance_id}}/occ
app:list
>
{{
backup_version_dir
}}/{{
app_instance_id
}}/{{
app_old_version
}}/app.list"
shell
:
"
php
{{
php_version
}}
{{
www_root
}}/{{
app_instance_id}}/occ
app:list
>
{{
backup_version_dir
}}/{{
app_instance_id
}}/{{
app_old_version
}}/app.list"
become_user
:
"
www-data"
vars
:
ansible_ssh_pipelining
:
true
...
...
@@ -117,7 +117,7 @@
service
:
name={{ rev_proxy }} state=reloaded
-
name
:
"
perform
nextcloud
upgrade"
command
:
"
php
{{
www_root
}}/{{
app_instance_id
}}/occ
upgrade"
command
:
"
php
{{
php_version
}}
{{
www_root
}}/{{
app_instance_id
}}/occ
upgrade"
become_user
:
"
www-data"
vars
:
ansible_ssh_pipelining
:
true
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment