Skip to content

Comments

use package instead of apt#9

Open
JensTimmerman wants to merge 3 commits intoswcc:masterfrom
JensTimmerman:patch-3
Open

use package instead of apt#9
JensTimmerman wants to merge 3 commits intoswcc:masterfrom
JensTimmerman:patch-3

Conversation

@JensTimmerman
Copy link

this makes this role work on centos, with - php_fpm_version: "74-php"

and

- name: "install php"
  hosts: nextcloud
  tasks:
    - package:
        name: 'dnf-utils'
        state: 'latest'


    - name: enable eremi repo
      command:
         cmd: dnf install --nogpgcheck -y http://rpms.remirepo.net/enterprise/remi-release-8.rpm

    - name: reset php
      command:

         cmd: dnf module reset php  -y

    - name: enable newest php
      command: dnf module enable php:remi-7.4 -y

    - package:
        name: 'php'
        state: 'latest'

Jens Timmerman added 2 commits May 9, 2022 13:52
this makes this role work on centos, with `- php_fpm_version: "74-php"`

and
```
- name: "install php"
  hosts: nextcloud
  tasks:
    - package:
        name: 'dnf-utils'
        state: 'latest'


    - name: enable eremi repo
      command:
         cmd: dnf install --nogpgcheck -y http://rpms.remirepo.net/enterprise/remi-release-8.rpm

    - name: reset php
      command:

         cmd: dnf module reset php  -y

    - name: enable newest php
      command: dnf module enable php:remi-7.4 -y

    - package:
        name: 'php'
        state: 'latest'
```
remove creates, so we can update using this role
@JensTimmerman
Copy link
Author

JensTimmerman commented Apr 15, 2025

removing the 'creates' statement, otherwise we can't use this role to upgrade Nextcloud, it won't download the new version if you bump the version because the destination already exists.

We could perhaps add some check to not always download, but to do download if version changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants