ReinerNippes / nextcloud

Ansible playbook to install nextcloud, php, nginx or apache, mariadb or postgres, redis-server, onlyoffice or collabora office
MIT License
412 stars 141 forks source link

CentOS 7 using incorrect Image #71

Open matt-cornall opened 4 years ago

matt-cornall commented 4 years ago

CentOS 7 now installs ImageMagick-6 during setup script, meaning nextcloud.yml breaks during running as files are locked at /etc/ImageMagick-6/ not /etc/ImageMagick/, editing the ansible role for this corrects the problem.

ReinerNippes commented 4 years ago

I just checked with an AWS CentOS7 Ami. /etc/ImageMagick seems to be correct. Could you please provide more info which version of CentOS7 did you use?

WaZaK commented 4 years ago

Same problem here, more informations about my CentOS 7 below:

[ansible@nextcloud ~]$ cat /etc/*elease
CentOS Linux release 7.7.1908 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.7.1908 (Core)
CentOS Linux release 7.7.1908 (Core)
[ansible@nextcloud ~]$ uname -r
3.10.0-1062.el7.x86_64
matt-cornall commented 4 years ago

To be honest, the script doesn't work on CentOS 7 at all for me, even correcting this error, the installed later fails at Let's Encrypt saying the SSL directories don't exist.Works on Ubuntu 16 fine though... -------- Original message --------From: WaZaK notifications@github.com Date: 21/04/2020 13:44 (GMT+00:00) To: ReinerNippes/nextcloud nextcloud@noreply.github.com Cc: Hybrice mattcornall@gmail.com, Author author@noreply.github.com Subject: Re: [ReinerNippes/nextcloud] CentOS 7 using incorrect Image (#71) Same problem here, more informations about my CentOS 7 below: [ansible@nextcloud ~]$ cat /etc/*elease CentOS Linux release 7.7.1908 (Core) NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.7.1908 (Core) CentOS Linux release 7.7.1908 (Core)

[ansible@nextcloud ~]$ uname -r 3.10.0-1062.el7.x86_64

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/ReinerNippes/nextcloud/issues/71#issuecomment-617156006", "url": "https://github.com/ReinerNippes/nextcloud/issues/71#issuecomment-617156006", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

ReinerNippes commented 4 years ago

I changed the path /etc/ImageMagick-6 to with commit f8efb46.

ReinerNippes commented 4 years ago

Next try. @Hybrice @WaZaK

There is a newer version of ImageMagick in the remi php repos. During the installation of the php modules ImageMagick become updated as well and this changed silently the config folder to /etc/ImageMagick-6.

I moved the installation to the prep_php role. So ImageMagick will be installed from the remi repo at once.

For testing I pushed it to: https://github.com/ReinerNippes/nextcloud/tree/ImageMagick

daleosm commented 4 years ago

I've tried building with the ImageMagick branch using cloud-init and ami-0affd4508a5d2481b (CentOS 7 with updates) and it fails to build.

I tried building again with the Ansible output redirected to a log file and it always gets stuck on applying SElinux tasks.

I then tried running it again with the script running as "centos" with already tested inventory file set and "sudo -u centos ./nextcloud.yml" from UserData and it managed to apply SELinux bit but got stuck again when getting the UUID for web-server user.

Thanks for the wonderful script never seen such attention to small customization details. I've just decided to move from the Ubuntu version to CentOS version overnight at a bad time.


#cloud-config

#
# Bootstrap Nextcloud
# 
# Edit ssh-authorized-keys: and runcmd: according to your needs
# Insert this as cloud-config/user data at launch of your ec2, droplet, openstack server, etc. pp.
# Login to your full configured NextCloud/Talk/Collabora-Server

#
# Create default system user (see below system_info: )
#
users:
  - default
#
# Install the minimal set of programs to bootstrap ansible and nextcloud
#
packages:
    - vim
    - mc
    - wget
    - curl
#
# Update server already at launch time
#
package_upgrade: true
#
# Create default system user
# Edit the name and ssh-authorized-keys according to your needs
#
system_info:
  default_user:
    name: ec2-user
    uid: 1000
    gecos: "cloud-init created default user"
    lock_passwd: True
    sudo: ["ALL=(ALL) NOPASSWD:ALL"]
    home: /home/ec2-user
    shell: /bin/bash
    ssh-authorized-keys:
      - 'ssh-rsa removed'
#
# Install and configure NextCloud in three steps
# Put any changes to the settings in the ansible inventory file as extra variables to ansible-pull
# e.g.: ansible-pull ... -e "next_archive=https://download.nextcloud.com/server/prereleases/nextcloud-13.0.5RC2.tar.bz2" -e "nc_passwd=your_secret"
#
runcmd:
  - hostnamectl set-hostname nextcloud.mydomain.com
  -
  - curl -s https://raw.githubusercontent.com/ReinerNippes/nextcloud/master/prepare_system.sh | /bin/bash
  - # 
  - # Insert a command to set a DynDNS record for this server here
  - # e.g. Strato DynDNS
  - # curl --silent --show-error --insecure --user [BENUTZERNAME]:[PASSWORT] https://dyndns.strato.com/nic/update?hostname=[HOSTNAME]
  - HOME=/root ansible-pull --clean --force -d /root/nextcloud -i 'localhost,' -U https://github.com/ReinerNippes/nextcloud.git -C ImageMagick nextcloud.yml -e `"fqdn=nextcloud.mydomain.com"
ReinerNippes commented 4 years ago

@daleosm Do you have the output of the playbook run? Maybe you have to add a > /var/log/nextcloud-playbook.log to the ansible-pull command and > /var/log/ansible-setup.sh to the bash command to get it.

daleosm commented 4 years ago

Here is my Ansible log:

PLAY [install nextcloud] *******************************************************

TASK [Gathering Facts] *********************************************************
Sunday 26 April 2020  19:54:17 +0000 (0:00:00.068)       0:00:00.068 ********** 
ok: [localhost]

TASK [prep_ufw : include os specific tasks] ************************************
Sunday 26 April 2020  19:54:18 +0000 (0:00:01.975)       0:00:02.044 ********** 
skipping: [localhost]

TASK [prep_ufw : Configuring port/protocol/network rules] **********************
Sunday 26 April 2020  19:54:19 +0000 (0:00:00.079)       0:00:02.123 ********** 
skipping: [localhost] => (item={u'port': 22, u'rule': u'allow'}) 
skipping: [localhost] => (item={u'port': 80, u'rule': u'allow'}) 
skipping: [localhost] => (item={u'port': 443, u'rule': u'allow'}) 

TASK [prep_ufw : Configuring application rules] ********************************
Sunday 26 April 2020  19:54:19 +0000 (0:00:00.101)       0:00:02.224 ********** 

TASK [prep_ufw : Configuring firewall] *****************************************
Sunday 26 April 2020  19:54:19 +0000 (0:00:00.071)       0:00:02.296 ********** 
skipping: [localhost]

TASK [prep_ufw : Configuring service] ******************************************
Sunday 26 April 2020  19:54:19 +0000 (0:00:00.074)       0:00:02.371 ********** 
skipping: [localhost]

TASK [prep_ufw : Enabling firewall] ********************************************
Sunday 26 April 2020  19:54:19 +0000 (0:00:00.077)       0:00:02.448 ********** 
skipping: [localhost]

TASK [prep_ufw : start ufw] ****************************************************
Sunday 26 April 2020  19:54:19 +0000 (0:00:00.077)       0:00:02.526 ********** 
skipping: [localhost]

TASK [prep_nginx : include os specific tasks] **********************************
Sunday 26 April 2020  19:54:19 +0000 (0:00:00.078)       0:00:02.604 ********** 
included: /nextcloud/roles/prep_nginx/tasks/CentOS.yml for localhost

TASK [prep_nginx : add nginx yum repos] ****************************************
Sunday 26 April 2020  19:54:19 +0000 (0:00:00.104)       0:00:02.708 ********** 
changed: [localhost]

TASK [prep_nginx : update os] **************************************************
Sunday 26 April 2020  19:54:20 +0000 (0:00:00.372)       0:00:03.080 ********** 
ok: [localhost]

TASK [prep_nginx : install needed packages] ************************************
Sunday 26 April 2020  19:54:24 +0000 (0:00:04.354)       0:00:07.435 ********** 
changed: [localhost]

TASK [prep_nginx : open firewall ports 22/80/443] ******************************
Sunday 26 April 2020  19:54:32 +0000 (0:00:08.320)       0:00:15.756 ********** 
changed: [localhost] => (item=22/tcp)
changed: [localhost] => (item=80/tcp)
changed: [localhost] => (item=443/tcp)

TASK [prep_nginx : stop and enable nginx] **************************************
Sunday 26 April 2020  19:54:33 +0000 (0:00:01.308)       0:00:17.065 ********** 
changed: [localhost]

TASK [prep_nginx : create some folders] ****************************************
Sunday 26 April 2020  19:54:34 +0000 (0:00:00.696)       0:00:17.761 ********** 
changed: [localhost] => (item={u'owner': u'nginx', u'path': u'/var/nc-data', u'group': u'nginx', u'mode': u'0750'})
changed: [localhost] => (item={u'owner': u'nginx', u'path': u'/var/www', u'group': u'nginx', u'mode': u'0750'})
changed: [localhost] => (item={u'owner': u'nginx', u'path': u'/var/www/letsencrypt', u'group': u'nginx', u'mode': u'0750'})
changed: [localhost] => (item={u'owner': u'nginx', u'path': u'/upload_tmp', u'group': u'nginx', u'mode': u'0755'})

TASK [prep_nginx : install pip netaddress] *************************************
Sunday 26 April 2020  19:54:35 +0000 (0:00:00.863)       0:00:18.625 ********** 
skipping: [localhost]

TASK [prep_nginx : set netmask] ************************************************
Sunday 26 April 2020  19:54:35 +0000 (0:00:00.032)       0:00:18.657 ********** 
ok: [localhost]

TASK [prep_nginx : bring /etc/nginx/nginx.conf in place] ***********************
Sunday 26 April 2020  19:54:35 +0000 (0:00:00.041)       0:00:18.699 ********** 
changed: [localhost]

TASK [prep_nginx : use ec2 public hostname if fqdn is not defined] *************
Sunday 26 April 2020  19:54:36 +0000 (0:00:00.708)       0:00:19.407 ********** 
ok: [localhost]

TASK [prep_nginx : use ansible_fqdn if fqdn is not defined] ********************
Sunday 26 April 2020  19:54:36 +0000 (0:00:00.041)       0:00:19.449 ********** 
ok: [localhost]

TASK [prep_nginx : nginx nextcloud config] *************************************
Sunday 26 April 2020  19:54:36 +0000 (0:00:00.040)       0:00:19.490 ********** 
changed: [localhost]

TASK [prep_nginx : nginx header config] ****************************************
Sunday 26 April 2020  19:54:36 +0000 (0:00:00.292)       0:00:19.782 ********** 
changed: [localhost]

TASK [prep_nginx : nginx config for ssl] ***************************************
Sunday 26 April 2020  19:54:37 +0000 (0:00:00.289)       0:00:20.072 ********** 
changed: [localhost]

TASK [prep_nginx : copy some nginx config file] ********************************
Sunday 26 April 2020  19:54:37 +0000 (0:00:00.289)       0:00:20.362 ********** 
changed: [localhost] => (item=optimization.conf)
changed: [localhost] => (item=php_optimization.conf)
changed: [localhost] => (item=proxy.conf)

TASK [prep_nginx : copy letencrypt.conf] ***************************************
Sunday 26 April 2020  19:54:38 +0000 (0:00:00.786)       0:00:21.148 ********** 
changed: [localhost]

TASK [prep_os : include os specific tasks] *************************************
Sunday 26 April 2020  19:54:38 +0000 (0:00:00.278)       0:00:21.427 ********** 
included: /nextcloud/roles/prep_os/tasks/CentOS.yml for localhost

TASK [prep_os : add epel repo] *************************************************
Sunday 26 April 2020  19:54:38 +0000 (0:00:00.064)       0:00:21.492 ********** 
changed: [localhost]

TASK [prep_os : update os] *****************************************************
Sunday 26 April 2020  19:54:38 +0000 (0:00:00.171)       0:00:21.664 ********** 
ok: [localhost]

TASK [prep_os : install needed packages] ***************************************
Sunday 26 April 2020  19:54:41 +0000 (0:00:03.384)       0:00:25.048 ********** 
changed: [localhost]

TASK [prep_os : remove unneeded packages] **************************************
Sunday 26 April 2020  19:54:53 +0000 (0:00:11.586)       0:00:36.638 ********** 
changed: [localhost]

TASK [prep_os : create some folders] *******************************************
Sunday 26 April 2020  19:54:55 +0000 (0:00:01.556)       0:00:38.194 ********** 
changed: [localhost] => (item={u'owner': u'nginx', u'path': u'/usr/local/tmp/apc', u'group': u'root', u'mode': u'1777'})
changed: [localhost] => (item={u'owner': u'nginx', u'path': u'/usr/local/tmp/sessions', u'group': u'root', u'mode': u'1777'})
changed: [localhost] => (item={u'owner': u'nginx', u'path': u'/usr/local/tmp/cache', u'group': u'root', u'mode': u'1777'})

TASK [prep_os : get uid of web_user] *******************************************
Sunday 26 April 2020  19:54:55 +0000 (0:00:00.497)       0:00:38.691 ********** 
ok: [localhost]

TASK [prep_os : mount tmp fs] **************************************************
Sunday 26 April 2020  19:54:56 +0000 (0:00:00.494)       0:00:39.186 ********** 
changed: [localhost] => (item=/tmp)
changed: [localhost] => (item=/var/tmp)

TASK [prep_os : mount tmp fs] **************************************************
Sunday 26 April 2020  19:54:56 +0000 (0:00:00.541)       0:00:39.727 ********** 
changed: [localhost] => (item=/usr/local/tmp/apc)
changed: [localhost] => (item=/usr/local/tmp/cache)
changed: [localhost] => (item=/usr/local/tmp/sessions)

TASK [prep_os : sysctl vm.overcommit_memory=1] *********************************
Sunday 26 April 2020  19:54:57 +0000 (0:00:00.475)       0:00:40.202 ********** 
changed: [localhost]

TASK [prep_os : sysctl -w net.core.somaxconn=65535] ****************************
Sunday 26 April 2020  19:54:57 +0000 (0:00:00.387)       0:00:40.590 ********** 
changed: [localhost]

TASK [prep_os : disable transparent hugepages - copy service file] *************
Sunday 26 April 2020  19:54:57 +0000 (0:00:00.173)       0:00:40.764 ********** 
changed: [localhost]

TASK [prep_os : enable service disable-transparent-hugepages] ******************
Sunday 26 April 2020  19:54:57 +0000 (0:00:00.283)       0:00:41.047 ********** 
changed: [localhost]

TASK [prep_os : create symbolic link to /usr/bin/gs] ***************************
Sunday 26 April 2020  19:54:58 +0000 (0:00:00.326)       0:00:41.374 ********** 
changed: [localhost]

TASK [prep_redis : include os specific tasks] **********************************
Sunday 26 April 2020  19:54:58 +0000 (0:00:00.174)       0:00:41.548 ********** 
included: /nextcloud/roles/prep_redis/tasks/CentOS.yml for localhost

TASK [prep_redis : install needed packages] ************************************
Sunday 26 April 2020  19:54:58 +0000 (0:00:00.060)       0:00:41.608 ********** 
changed: [localhost]

TASK [prep_redis : configure redis] ********************************************
Sunday 26 April 2020  19:55:03 +0000 (0:00:05.238)       0:00:46.846 ********** 
changed: [localhost]

TASK [prep_redis : add user nginx to group redis] ******************************
Sunday 26 April 2020  19:55:04 +0000 (0:00:00.309)       0:00:47.156 ********** 
changed: [localhost]

TASK [prep_redis : start and enable redis] *************************************
Sunday 26 April 2020  19:55:04 +0000 (0:00:00.229)       0:00:47.386 ********** 
changed: [localhost]

TASK [prep_php : os spefic path] ***********************************************
Sunday 26 April 2020  19:55:04 +0000 (0:00:00.321)       0:00:47.707 ********** 
included: /nextcloud/roles/prep_php/tasks/CentOS.yml for localhost

TASK [prep_php : add php73 repo] ***********************************************
Sunday 26 April 2020  19:55:04 +0000 (0:00:00.067)       0:00:47.775 ********** 
changed: [localhost]

TASK [prep_php : add remi safe repo] *******************************************
Sunday 26 April 2020  19:55:04 +0000 (0:00:00.178)       0:00:47.954 ********** 
changed: [localhost]

TASK [prep_php : add remi repo] ************************************************
Sunday 26 April 2020  19:55:05 +0000 (0:00:00.171)       0:00:48.126 ********** 
changed: [localhost]

TASK [prep_php : update os] ****************************************************
Sunday 26 April 2020  19:55:05 +0000 (0:00:00.172)       0:00:48.298 ********** 
changed: [localhost]

TASK [prep_php : install needed packages] **************************************
Sunday 26 April 2020  19:55:20 +0000 (0:00:15.417)       0:01:03.715 ********** 
changed: [localhost]

TASK [prep_php : configure php] ************************************************
Sunday 26 April 2020  19:55:53 +0000 (0:00:33.027)       0:01:36.743 ********** 
changed: [localhost] => (item={u'dest': u'/etc/php-cli.ini', u'file': u'CentOS/cli.php.ini'})

TASK [prep_php : correct ownership /var/lib/php] *******************************
Sunday 26 April 2020  19:55:53 +0000 (0:00:00.301)       0:01:37.044 ********** 
changed: [localhost] => (item={u'owner': u'nginx', u'group': u'nginx', u'name': u'/var/lib/php/session'})
changed: [localhost] => (item={u'owner': u'root', u'group': u'nginx', u'name': u'/var/lib/php/wsdlcache'})
changed: [localhost] => (item={u'owner': u'root', u'group': u'nginx', u'name': u'/var/lib/php/opcache'})

TASK [prep_php : replace opcache.max_accelerated_files=4000] *******************
Sunday 26 April 2020  19:55:54 +0000 (0:00:00.485)       0:01:37.529 ********** 
changed: [localhost]

TASK [prep_php : alias php] ****************************************************
Sunday 26 April 2020  19:55:54 +0000 (0:00:00.395)       0:01:37.925 ********** 
skipping: [localhost]

TASK [prep_php : configure php] ************************************************
Sunday 26 April 2020  19:55:54 +0000 (0:00:00.035)       0:01:37.960 ********** 
changed: [localhost] => (item={u'dest': u'/etc/php.ini', u'file': u'CentOS/fpm.php.ini'})

TASK [prep_php : configure php] ************************************************
Sunday 26 April 2020  19:55:55 +0000 (0:00:00.328)       0:01:38.289 ********** 
changed: [localhost] => (item={u'dest': u'/etc/php-fpm.d/www.conf', u'file': u'CentOS/www.conf'})
changed: [localhost] => (item={u'dest': u'/etc/php-fpm.conf', u'file': u'CentOS/php-fpm.conf'})

TASK [prep_php : include selinux tasks] ****************************************
Sunday 26 April 2020  19:55:55 +0000 (0:00:00.619)       0:01:38.909 ********** 
included: /nextcloud/roles/prep_php/tasks/selinux.yml for localhost

TASK [prep_php : selinux targets] **********************************************
Sunday 26 April 2020  19:55:55 +0000 (0:00:00.072)       0:01:38.982 ********** 
changed: [localhost] => (item=/tmp(/.*)?)

TASK [prep_php : restorecon] ***************************************************
Sunday 26 April 2020  19:55:59 +0000 (0:00:03.783)       0:01:42.766 ********** 
changed: [localhost] => (item=/tmp)

TASK [prep_php : enable php-fpm] ***********************************************
Sunday 26 April 2020  19:56:00 +0000 (0:00:00.396)       0:01:43.162 ********** 
changed: [localhost]

TASK [prep_php : change ImageMagick settings] **********************************
Sunday 26 April 2020  19:56:00 +0000 (0:00:00.425)       0:01:43.587 ********** 
changed: [localhost] => (item=PS)
changed: [localhost] => (item=EPI)
changed: [localhost] => (item=PDF)
changed: [localhost] => (item=XPS)

TASK [prep_secrets : make sure /etc/nextcloud is available] ********************
Sunday 26 April 2020  19:56:01 +0000 (0:00:00.638)       0:01:44.225 ********** 
changed: [localhost -> localhost]

TASK [prep_secrets : generate db passwd if nc_db_passwd is empty] **************
Sunday 26 April 2020  19:56:01 +0000 (0:00:00.194)       0:01:44.420 ********** 
ok: [localhost]

TASK [prep_mariadb : include os specific tasks] ********************************
Sunday 26 April 2020  19:56:01 +0000 (0:00:00.052)       0:01:44.472 ********** 
included: /nextcloud/roles/prep_mariadb/tasks/CentOS.yml for localhost

TASK [prep_mariadb : add MariaDB repo] *****************************************
Sunday 26 April 2020  19:56:01 +0000 (0:00:00.072)       0:01:44.545 ********** 
changed: [localhost]

TASK [prep_mariadb : install MariaDB] ******************************************
Sunday 26 April 2020  19:56:01 +0000 (0:00:00.189)       0:01:44.735 ********** 
changed: [localhost]

TASK [prep_mariadb : install MySQLdb python package for database setup] ********
Sunday 26 April 2020  19:56:37 +0000 (0:00:36.034)       0:02:20.769 ********** 
skipping: [localhost]

TASK [prep_mariadb : enable MariaDB] *******************************************
Sunday 26 April 2020  19:56:37 +0000 (0:00:00.040)       0:02:20.810 ********** 
changed: [localhost]

TASK [prep_mariadb : stop if installed] ****************************************
Sunday 26 April 2020  19:56:38 +0000 (0:00:00.392)       0:02:21.203 ********** 
ok: [localhost]

TASK [prep_mariadb : install PyMySQL] ******************************************
Sunday 26 April 2020  19:56:38 +0000 (0:00:00.251)       0:02:21.455 ********** 
changed: [localhost]

TASK [prep_mariadb : create conf dir] ******************************************
Sunday 26 April 2020  19:56:39 +0000 (0:00:01.595)       0:02:23.050 ********** 
ok: [localhost]

TASK [prep_mariadb : configure mariadb] ****************************************
Sunday 26 April 2020  19:56:40 +0000 (0:00:00.186)       0:02:23.237 ********** 
changed: [localhost]

TASK [prep_mariadb : start and enable MariaDB] *********************************
Sunday 26 April 2020  19:56:40 +0000 (0:00:00.305)       0:02:23.542 ********** 
changed: [localhost]

TASK [prep_mariadb : remove anonymous user] ************************************
Sunday 26 April 2020  19:56:41 +0000 (0:00:01.405)       0:02:24.948 ********** 
[WARNING]: Module did not set no_log for update_password
changed: [localhost]

TASK [prep_mariadb : remove test db] *******************************************
Sunday 26 April 2020  19:56:42 +0000 (0:00:00.525)       0:02:25.474 ********** 
changed: [localhost]

TASK [prep_mariadb : create nextcloud db] **************************************
Sunday 26 April 2020  19:56:42 +0000 (0:00:00.395)       0:02:25.870 ********** 
changed: [localhost]

TASK [prep_mariadb : create nextcloud user] ************************************
Sunday 26 April 2020  19:56:43 +0000 (0:00:00.216)       0:02:26.087 ********** 
changed: [localhost]

TASK [prep_postgres : include os specific tasks] *******************************
Sunday 26 April 2020  19:56:43 +0000 (0:00:00.223)       0:02:26.310 ********** 
skipping: [localhost]

TASK [prep_postgres : create nextcloud db] *************************************
Sunday 26 April 2020  19:56:43 +0000 (0:00:00.039)       0:02:26.349 ********** 
skipping: [localhost]

TASK [prep_postgres : Create nextcloud account] ********************************
Sunday 26 April 2020  19:56:43 +0000 (0:00:00.039)       0:02:26.392 ********** 
skipping: [localhost]

TASK [prep_postgres : Grant all privileges on database nextcloud to nextcloud] ***
Sunday 26 April 2020  19:56:43 +0000 (0:00:00.043)       0:02:26.435 ********** 
skipping: [localhost]

TASK [prep_letsencrypt : include os specific tasks] ****************************
Sunday 26 April 2020  19:56:43 +0000 (0:00:00.037)       0:02:26.473 ********** 
included: /nextcloud/roles/prep_letsencrypt/tasks/CentOS.yml for localhost

TASK [prep_letsencrypt : install needed pip packages] **************************
Sunday 26 April 2020  19:56:43 +0000 (0:00:00.066)       0:02:26.539 ********** 
changed: [localhost]

TASK [prep_letsencrypt : letsencrypt renewal cronjob] **************************
Sunday 26 April 2020  19:56:51 +0000 (0:00:07.797)       0:02:34.336 ********** 
changed: [localhost]

TASK [prep_letsencrypt : ensure "/etc/nginx/certs" exists] *********************
Sunday 26 April 2020  19:56:51 +0000 (0:00:00.403)       0:02:34.740 ********** 
changed: [localhost]

TASK [prep_letsencrypt : use the pre-defined DH groups ffdhe4096 recommended by the IETF in [RFC 7919 https://tools.ietf.org/html/rfc7919]] ***
Sunday 26 April 2020  19:56:51 +0000 (0:00:00.185)       0:02:34.926 ********** 
changed: [localhost]

TASK [prep_letsencrypt : ensure nginx is stopped nginx] ************************
Sunday 26 April 2020  19:56:52 +0000 (0:00:00.289)       0:02:35.215 ********** 
ok: [localhost]

TASK [prep_letsencrypt : install letsencrypt certificates] *********************
Sunday 26 April 2020  19:56:52 +0000 (0:00:00.253)       0:02:35.469 ********** 
changed: [localhost]

TASK [prep_selfssl : ensure "/etc/nginx/certs" exists] *************************
Sunday 26 April 2020  19:56:57 +0000 (0:00:05.015)       0:02:40.484 ********** 
skipping: [localhost]

TASK [prep_selfssl : use the pre-defined DH groups ffdhe4096 recommended by the IETF in [RFC 7919 https://tools.ietf.org/html/rfc7919]] ***
Sunday 26 April 2020  19:56:57 +0000 (0:00:00.039)       0:02:40.524 ********** 
skipping: [localhost]

TASK [prep_selfssl : use ec2 public hostname if fqdn is not defined] ***********
Sunday 26 April 2020  19:56:57 +0000 (0:00:00.038)       0:02:40.563 ********** 
skipping: [localhost]

TASK [prep_selfssl : use ansible_fqdn if fqdn is not defined] ******************
Sunday 26 April 2020  19:56:57 +0000 (0:00:00.041)       0:02:40.604 ********** 
skipping: [localhost]

TASK [prep_selfssl : create fake certificate directory] ************************
Sunday 26 April 2020  19:56:57 +0000 (0:00:00.041)       0:02:40.646 ********** 
skipping: [localhost]

TASK [prep_selfssl : install needed pip packages] ******************************
Sunday 26 April 2020  19:56:57 +0000 (0:00:00.039)       0:02:40.686 ********** 
skipping: [localhost]

TASK [prep_selfssl : generate an openssl private key with the default values] ***
Sunday 26 April 2020  19:56:57 +0000 (0:00:00.041)       0:02:40.727 ********** 
skipping: [localhost]

TASK [prep_selfssl : generate an openssl certificate signing request] **********
Sunday 26 April 2020  19:56:57 +0000 (0:00:00.039)       0:02:40.767 ********** 
skipping: [localhost]

TASK [prep_selfssl : Generate a Self Signed OpenSSL certificate] ***************
Sunday 26 April 2020  19:56:57 +0000 (0:00:00.039)       0:02:40.807 ********** 
skipping: [localhost]

TASK [restic_backup : install restic] ******************************************
Sunday 26 April 2020  19:56:57 +0000 (0:00:00.044)       0:02:40.851 ********** 
skipping: [localhost]

TASK [restic_backup : install restic] ******************************************
Sunday 26 April 2020  19:56:57 +0000 (0:00:00.040)       0:02:40.892 ********** 
skipping: [localhost]

TASK [restic_backup : generate restic secret if restic_backup_secret is empty] ***
Sunday 26 April 2020  19:56:57 +0000 (0:00:00.039)       0:02:40.931 ********** 
skipping: [localhost]

TASK [restic_backup : create restic backup directory] **************************
Sunday 26 April 2020  19:56:57 +0000 (0:00:00.041)       0:02:40.973 ********** 
skipping: [localhost]

TASK [restic_backup : initialize repository] ***********************************
Sunday 26 April 2020  19:56:57 +0000 (0:00:00.039)       0:02:41.012 ********** 
skipping: [localhost]

TASK [restic_backup : cretae restic selfhosted backup script] ******************
Sunday 26 April 2020  19:56:57 +0000 (0:00:00.039)       0:02:41.052 ********** 
skipping: [localhost]

TASK [restic_backup : crontab entry] *******************************************
Sunday 26 April 2020  19:56:58 +0000 (0:00:00.041)       0:02:41.093 ********** 
skipping: [localhost]

TASK [prep_nextcloud : generate admin passwd if nextcloud_passwd is empty] *****
Sunday 26 April 2020  19:56:58 +0000 (0:00:00.040)       0:02:41.134 ********** 
ok: [localhost]

TASK [prep_nextcloud : download nextcloud archive] *****************************
Sunday 26 April 2020  19:56:58 +0000 (0:00:00.048)       0:02:41.182 ********** 
changed: [localhost]

TASK [prep_nextcloud : install nextcloud] **************************************
Sunday 26 April 2020  19:57:06 +0000 (0:00:08.796)       0:02:49.979 ********** 
changed: [localhost]

TASK [prep_nextcloud : set permissions] ****************************************
Sunday 26 April 2020  19:57:42 +0000 (0:00:35.715)       0:03:25.695 ********** 
changed: [localhost]

TASK [prep_nextcloud : include selinux tasks] **********************************
Sunday 26 April 2020  19:57:43 +0000 (0:00:00.384)       0:03:26.079 ********** 
included: /nextcloud/roles/prep_nextcloud/tasks/selinux.yml for localhost

TASK [prep_nextcloud : selinux targets] ****************************************
Sunday 26 April 2020  19:57:43 +0000 (0:00:00.072)       0:03:26.152 ********** 
changed: [localhost] => (item=/var/nc-data(/.*)?)
changed: [localhost] => (item=/var/www/nextcloud/config(/.*)?)
changed: [localhost] => (item=/var/www/nextcloud/apps(/.*)?)
changed: [localhost] => (item=/var/www/nextcloud/assets(/.*)?)
changed: [localhost] => (item=/var/www/nextcloud/.htaccess)
changed: [localhost] => (item=/var/www/nextcloud/.user.ini)
changed: [localhost] => (item=/var/www/nextcloud/3rdparty/aws/aws-sdk-php/src/data/logs(/.*)?)
changed: [localhost] => (item=/usr/local/tmp(/.*)?)
changed: [localhost] => (item=/upload_tmp(/.*)?)

TASK [prep_nextcloud : enable seboolean settings] ******************************
Sunday 26 April 2020  19:58:07 +0000 (0:00:24.908)       0:03:51.063 ********** 
`
daleosm commented 4 years ago

This is my execution:

#!/bin/bash -xe
          exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1

            yum -y upgrade
            curl -s https://raw.githubusercontent.com/ReinerNippes/nextcloud/master/prepare_system.sh | /bin/bash
            git clone https://github.com/ReinerNippes/nextcloud --branch ImageMagick

            cd nextcloud

            # SED INVENTORY HERE

            ./nextcloud.yml

Edit: I'm now getting this error when launching the install from a CloudFormation script but with the same execution method. I'm so confused as the reason for it not working keeps changing but my code is 99% the same.

TASK [prep_nextcloud : generate admin passwd if nextcloud_passwd is empty] *****
Sunday 26 April 2020  23:55:03 +0000 (0:00:00.042)       0:05:04.542 ********** 
ok: [localhost]

TASK [prep_nextcloud : download nextcloud archive] *****************************
Sunday 26 April 2020  23:55:03 +0000 (0:00:00.047)       0:05:04.590 ********** 

I can pull Nextcloud on the instance with wget fine.

ReinerNippes commented 4 years ago

I have seen problems downloading the nextcloud tgz. Nevertheless rather seldom. But I'm afraid it's not related to the playbook.

I just tried with the ami you mentioned. In the inventory I only changed the fqdn. And it worked. Did you try to rerun the playbook?

TASK [prep_nextcloud : generate admin passwd if nextcloud_passwd is empty] *************************************************************************************
Monday 27 April 2020  19:43:47 +0000 (0:00:00.036)       0:02:08.756 **********
ok: [localhost]

TASK [prep_nextcloud : download nextcloud archive] *************************************************************************************************************
Monday 27 April 2020  19:43:47 +0000 (0:00:00.044)       0:02:08.801 **********
changed: [localhost]

TASK [prep_nextcloud : install nextcloud] **********************************************************************************************************************
Monday 27 April 2020  19:43:55 +0000 (0:00:08.620)       0:02:17.421 **********
changed: [localhost]

TASK [prep_nextcloud : set permissions] ************************************************************************************************************************
Monday 27 April 2020  19:44:41 +0000 (0:00:45.786)       0:03:03.207 **********
changed: [localhost]

TASK [prep_nextcloud : include selinux tasks] ******************************************************************************************************************
Monday 27 April 2020  19:44:41 +0000 (0:00:00.443)       0:03:03.651 **********
included: /root/nextcloud/roles/prep_nextcloud/tasks/selinux.yml for localhost

TASK [prep_nextcloud : selinux targets] ************************************************************************************************************************
Monday 27 April 2020  19:44:41 +0000 (0:00:00.072)       0:03:03.723 **********
changed: [localhost] => (item=/var/nc-data(/.*)?)
changed: [localhost] => (item=/var/www/nextcloud/config(/.*)?)
changed: [localhost] => (item=/var/www/nextcloud/apps(/.*)?)
changed: [localhost] => (item=/var/www/nextcloud/assets(/.*)?)
changed: [localhost] => (item=/var/www/nextcloud/.htaccess)
changed: [localhost] => (item=/var/www/nextcloud/.user.ini)
changed: [localhost] => (item=/var/www/nextcloud/3rdparty/aws/aws-sdk-php/src/data/logs(/.*)?)
changed: [localhost] => (item=/usr/local/tmp(/.*)?)
changed: [localhost] => (item=/upload_tmp(/.*)?)

TASK [prep_nextcloud : enable seboolean settings] **************************************************************************************************************
Monday 27 April 2020  19:45:07 +0000 (0:00:25.510)       0:03:29.234 **********
changed: [localhost] => (item=httpd_can_sendmail)
changed: [localhost] => (item=httpd_unified)
changed: [localhost] => (item=httpd_graceful_shutdown)
changed: [localhost] => (item=httpd_can_network_relay)
changed: [localhost] => (item=httpd_can_network_connect)
changed: [localhost] => (item=httpd_can_network_connect_db)
changed: [localhost] => (item=daemons_enable_cluster_mode)
changed: [localhost] => (item=httpd_execmem)

TASK [prep_nextcloud : enable seboolean settings] **************************************************************************************************************
Monday 27 April 2020  19:45:29 +0000 (0:00:21.573)       0:03:50.807 **********
changed: [localhost] => (item=httpd-to-php-fpm.pp)
changed: [localhost] => (item=httpd-to-redis-socket.pp)
changed: [localhost] => (item=httpd-to-upload-tmp.pp)

TASK [prep_nextcloud : restorecon] *****************************************************************************************************************************
Monday 27 April 2020  19:45:58 +0000 (0:00:29.770)       0:04:20.578 **********
changed: [localhost] => (item=/var/www/nextcloud/)
changed: [localhost] => (item=/var/nc-data)
changed: [localhost] => (item=/upload_tmp)
changed: [localhost] => (item=/usr/local/tmp)

RUNNING HANDLER [prep_nginx : restart nginx] *******************************************************************************************************************
Monday 27 April 2020  19:46:03 +0000 (0:00:04.536)       0:04:25.114 **********
changed: [localhost]

RUNNING HANDLER [prep_redis : restart redis-server] ************************************************************************************************************
Monday 27 April 2020  19:46:03 +0000 (0:00:00.330)       0:04:25.445 **********
changed: [localhost]

RUNNING HANDLER [prep_php : restart php-fpm] *******************************************************************************************************************
Monday 27 April 2020  19:46:04 +0000 (0:00:00.317)       0:04:25.763 **********
changed: [localhost]

TASK [prep_nextcloud : start nginx] ****************************************************************************************************************************
Monday 27 April 2020  19:46:04 +0000 (0:00:00.460)       0:04:26.223 **********
ok: [localhost]

TASK [prep_nextcloud : restart redis] **************************************************************************************************************************
Monday 27 April 2020  19:46:04 +0000 (0:00:00.268)       0:04:26.491 **********
changed: [localhost]

TASK [prep_nextcloud : first setup nextcloud] ******************************************************************************************************************
Monday 27 April 2020  19:46:05 +0000 (0:00:00.294)       0:04:26.786 **********
[WARNING]: Unable to use /var/cache/nginx/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied:
'/var/cache/nginx/.ansible'
changed: [localhost]

TASK [prep_nextcloud : debug] **********************************************************************************************************************************
Monday 27 April 2020  19:46:57 +0000 (0:00:52.646)       0:05:19.433 **********
skipping: [localhost]

TASK [prep_nextcloud : set nextcloud domain config.php values] *************************************************************************************************
Monday 27 April 2020  19:46:57 +0000 (0:00:00.038)       0:05:19.471 **********
changed: [localhost] => (item={u'value': u'--value=https://xxx.xxx.xxx', u'key': u'overwrite.cli.url'})
changed: [localhost] => (item={u'value': u'1 --value=xxx.xxx.xxx', u'key': u'trusted_domains'})

TASK [prep_nextcloud : set nextcloud mail config.php values] ***************************************************************************************************
Monday 27 April 2020  19:46:58 +0000 (0:00:00.980)       0:05:20.452 **********
skipping: [localhost] => (item={u'value': u'--value=', u'key': u'mail_from_address'})
skipping: [localhost] => (item={u'value': u'--value=smtp', u'key': u'mail_smtpmode'})
skipping: [localhost] => (item={u'value': u'--value=LOGIN', u'key': u'mail_smtpauthtype'})
skipping: [localhost] => (item={u'value': u'--value=', u'key': u'mail_domain'})
skipping: [localhost] => (item={u'value': u'--value=', u'key': u'mail_smtpname'})
skipping: [localhost] => (item={u'value': u'--value=tls', u'key': u'mail_smtpsecure'})
skipping: [localhost] => (item={u'value': u'--value=1', u'key': u'mail_smtpauth'})
skipping: [localhost] => (item={u'value': u'--value=', u'key': u'mail_smtphost'})
skipping: [localhost] => (item={u'value': u'--value=587', u'key': u'mail_smtpport'})
skipping: [localhost] => (item={u'value': u'--value=', u'key': u'mail_smtpname'})
skipping: [localhost] => (item={u'value': u'--value=', u'key': u'mail_smtppassword'})

TASK [prep_nextcloud : copy defaults/config.json to /tmp] ******************************************************************************************************
Monday 27 April 2020  19:46:58 +0000 (0:00:00.149)       0:05:20.602 **********
changed: [localhost]

TASK [prep_nextcloud : set default config] *********************************************************************************************************************
Monday 27 April 2020  19:46:59 +0000 (0:00:00.317)       0:05:20.919 **********
changed: [localhost]

TASK [prep_nextcloud : copy defaults/config.json to /tmp] ******************************************************************************************************
Monday 27 April 2020  19:46:59 +0000 (0:00:00.488)       0:05:21.408 **********
changed: [localhost]

TASK [prep_nextcloud : debug] **********************************************************************************************************************************
Monday 27 April 2020  19:46:59 +0000 (0:00:00.187)       0:05:21.595 **********
skipping: [localhost]

TASK [prep_nextcloud : backup jobs, upgrade apps and database tuning] ******************************************************************************************
Monday 27 April 2020  19:46:59 +0000 (0:00:00.037)       0:05:21.633 **********
changed: [localhost] => (item=background:cron)
changed: [localhost] => (item=upgrade)
changed: [localhost] => (item=db:add-missing-indices)
changed: [localhost] => (item=db:convert-filecache-bigint)

TASK [prep_nextcloud : upgrade nextcloud] **********************************************************************************************************************
Monday 27 April 2020  19:47:03 +0000 (0:00:03.942)       0:05:25.575 **********
changed: [localhost]

TASK [prep_nextcloud : adjust app settings] ********************************************************************************************************************
Monday 27 April 2020  19:47:04 +0000 (0:00:00.492)       0:05:26.067 **********
changed: [localhost] => (item={u'value': u'survey_client', u'key': u'disable'})
changed: [localhost] => (item={u'value': u'firstrunwizard', u'key': u'disable'})
changed: [localhost] => (item={u'value': u'admin_audit', u'key': u'enable'})
changed: [localhost] => (item={u'value': u'files_pdfviewer', u'key': u'enable'})

TASK [prep_nextcloud : add nextcloud cronjob] ******************************************************************************************************************
Monday 27 April 2020  19:47:06 +0000 (0:00:02.656)       0:05:28.724 **********
changed: [localhost]

TASK [prep_nextcloud : run nextcloud cronjob] ******************************************************************************************************************
Monday 27 April 2020  19:47:07 +0000 (0:00:00.449)       0:05:29.174 **********
changed: [localhost]

TASK [prep_talk : include os specific tasks] *******************************************************************************************************************
Monday 27 April 2020  19:47:10 +0000 (0:00:03.146)       0:05:32.321 **********
skipping: [localhost]

TASK [prep_talk : install talk app] ****************************************************************************************************************************
Monday 27 April 2020  19:47:10 +0000 (0:00:00.038)       0:05:32.359 **********
skipping: [localhost]

TASK [prep_talk : enable talk app] *****************************************************************************************************************************
Monday 27 April 2020  19:47:10 +0000 (0:00:00.036)       0:05:32.396 **********
skipping: [localhost]

TASK [prep_talk : set stun_server] *****************************************************************************************************************************
Monday 27 April 2020  19:47:10 +0000 (0:00:00.037)       0:05:32.434 **********
skipping: [localhost]

TASK [prep_talk : set turn server] *****************************************************************************************************************************
Monday 27 April 2020  19:47:10 +0000 (0:00:00.037)       0:05:32.471 **********
skipping: [localhost]

TASK [open ufw firewall] ***************************************************************************************************************************************
Monday 27 April 2020  19:47:10 +0000 (0:00:00.037)       0:05:32.509 **********
skipping: [localhost]

TASK [prep_docker : include os specific tasks] *****************************************************************************************************************
Monday 27 April 2020  19:47:10 +0000 (0:00:00.037)       0:05:32.546 **********
skipping: [localhost]

TASK [prep_docker : install python docker] *********************************************************************************************************************
Monday 27 April 2020  19:47:10 +0000 (0:00:00.038)       0:05:32.585 **********
skipping: [localhost]

TASK [prep_docker : enable docker] *****************************************************************************************************************************
Monday 27 April 2020  19:47:10 +0000 (0:00:00.037)       0:05:32.622 **********
skipping: [localhost]

TASK [prep_docker : add to group docker] ***********************************************************************************************************************
Monday 27 April 2020  19:47:10 +0000 (0:00:00.036)       0:05:32.658 **********
skipping: [localhost]

TASK [prep_collabora : install collabora app] ******************************************************************************************************************
Monday 27 April 2020  19:47:10 +0000 (0:00:00.038)       0:05:32.697 **********
skipping: [localhost]

TASK [prep_collabora : enable collabora app] *******************************************************************************************************************
Monday 27 April 2020  19:47:10 +0000 (0:00:00.038)       0:05:32.736 **********
skipping: [localhost]

TASK [prep_collabora : set collabora wopi url] *****************************************************************************************************************
Monday 27 April 2020  19:47:11 +0000 (0:00:00.036)       0:05:32.773 **********
skipping: [localhost]

TASK [prep_collabora : pull collabora image] *******************************************************************************************************************
Monday 27 April 2020  19:47:11 +0000 (0:00:00.037)       0:05:32.810 **********
skipping: [localhost]

TASK [prep_collabora : start a collabora container] ************************************************************************************************************
Monday 27 April 2020  19:47:11 +0000 (0:00:00.038)       0:05:32.849 **********
skipping: [localhost]

TASK [prep_docker : include os specific tasks] *****************************************************************************************************************
Monday 27 April 2020  19:47:11 +0000 (0:00:00.036)       0:05:32.886 **********
skipping: [localhost]

TASK [prep_docker : install python docker] *********************************************************************************************************************
Monday 27 April 2020  19:47:11 +0000 (0:00:00.037)       0:05:32.923 **********
skipping: [localhost]

TASK [prep_docker : enable docker] *****************************************************************************************************************************
Monday 27 April 2020  19:47:11 +0000 (0:00:00.037)       0:05:32.961 **********
skipping: [localhost]

TASK [prep_docker : add to group docker] ***********************************************************************************************************************
Monday 27 April 2020  19:47:11 +0000 (0:00:00.036)       0:05:32.997 **********
skipping: [localhost]

TASK [prep_onlyoffice : install onlyoffice app] ****************************************************************************************************************
Monday 27 April 2020  19:47:11 +0000 (0:00:00.040)       0:05:33.038 **********
skipping: [localhost]

TASK [prep_onlyoffice : enable onlyoffice app] *****************************************************************************************************************
Monday 27 April 2020  19:47:11 +0000 (0:00:00.039)       0:05:33.078 **********
skipping: [localhost]

TASK [prep_onlyoffice : set onlyoffice server url] *************************************************************************************************************
Monday 27 April 2020  19:47:11 +0000 (0:00:00.039)       0:05:33.117 **********
skipping: [localhost]

TASK [prep_onlyoffice : set onlyoffice server secret] **********************************************************************************************************
Monday 27 April 2020  19:47:11 +0000 (0:00:00.038)       0:05:33.156 **********
skipping: [localhost]

TASK [prep_onlyoffice : set onlyoffice cert check off] *********************************************************************************************************
Monday 27 April 2020  19:47:11 +0000 (0:00:00.040)       0:05:33.196 **********
skipping: [localhost]

TASK [prep_onlyoffice : start a onlyoffice container] **********************************************************************************************************
Monday 27 April 2020  19:47:11 +0000 (0:00:00.039)       0:05:33.236 **********
skipping: [localhost]

TASK [open ufw firewall] ***************************************************************************************************************************************
Monday 27 April 2020  19:47:11 +0000 (0:00:00.037)       0:05:33.273 **********
skipping: [localhost]

TASK [prep_onlyoffice : open firewalld] ************************************************************************************************************************
Monday 27 April 2020  19:47:11 +0000 (0:00:00.036)       0:05:33.309 **********
skipping: [localhost] => (item=8443/tcp)

TASK [nc_fail2ban : include os specific tasks] *****************************************************************************************************************
Monday 27 April 2020  19:47:11 +0000 (0:00:00.043)       0:05:33.353 **********
included: /root/nextcloud/roles/nc_fail2ban/tasks/CentOS.yml for localhost

TASK [nc_fail2ban : install fail2ban] **************************************************************************************************************************
Monday 27 April 2020  19:47:11 +0000 (0:00:00.058)       0:05:33.412 **********
changed: [localhost]

TASK [nc_fail2ban : configure fail2ban] ************************************************************************************************************************
Monday 27 April 2020  19:47:22 +0000 (0:00:10.571)       0:05:43.984 **********
changed: [localhost]

TASK [nc_fail2ban : create new jail] ***************************************************************************************************************************
Monday 27 April 2020  19:47:22 +0000 (0:00:00.343)       0:05:44.328 **********
changed: [localhost]

TASK [nc_fail2ban : enable fail2ban] ***************************************************************************************************************************
Monday 27 April 2020  19:47:22 +0000 (0:00:00.346)       0:05:44.674 **********
changed: [localhost]

TASK [nc_fail2ban : include selinux tasks] *********************************************************************************************************************
Monday 27 April 2020  19:47:23 +0000 (0:00:00.349)       0:05:45.023 **********
included: /root/nextcloud/roles/nc_fail2ban/tasks/selinux.yml for localhost

TASK [nc_fail2ban : enable seboolean settings] *****************************************************************************************************************
Monday 27 April 2020  19:47:23 +0000 (0:00:00.068)       0:05:45.092 **********
changed: [localhost]

TASK [nc_fail2ban : restorecon] ********************************************************************************************************************************
Monday 27 April 2020  19:47:33 +0000 (0:00:09.967)       0:05:55.060 **********
changed: [localhost]

RUNNING HANDLER [nc_fail2ban : restart fail2ban] ***************************************************************************************************************
Monday 27 April 2020  19:47:33 +0000 (0:00:00.190)       0:05:55.250 **********
changed: [localhost]

TASK [We are ready] ********************************************************************************************************************************************
Monday 27 April 2020  19:47:33 +0000 (0:00:00.350)       0:05:55.601 **********
ok: [localhost] =>
  msg:
  - Your Nextcloud at https://xxx.xxx.xxx is ready.
  - 'Login with user: admin and password: LGLgAOBp6C7ar1lJ9HX9XbqfLWPsYuHb '
  - 'Other secrets you''ll find in the directory /etc/nextcloud '

PLAY RECAP *****************************************************************************************************************************************************
localhost                  : ok=112  changed=88   unreachable=0    failed=0    skipped=62   rescued=0    ignored=0

Monday 27 April 2020  19:47:33 +0000 (0:00:00.031)       0:05:55.632 **********
===============================================================================
prep_nextcloud : first setup nextcloud ----------------------------------------------------------------------------------------------------------------- 52.65s
prep_nextcloud : install nextcloud --------------------------------------------------------------------------------------------------------------------- 45.79s
prep_php : install needed packages --------------------------------------------------------------------------------------------------------------------- 30.76s
prep_nextcloud : enable seboolean settings ------------------------------------------------------------------------------------------------------------- 29.77s
prep_nextcloud : selinux targets ----------------------------------------------------------------------------------------------------------------------- 25.51s
prep_nextcloud : enable seboolean settings ------------------------------------------------------------------------------------------------------------- 21.57s
prep_postgres : install postgres server ---------------------------------------------------------------------------------------------------------------- 15.21s
prep_php : update os ----------------------------------------------------------------------------------------------------------------------------------- 12.98s
prep_os : install needed packages ---------------------------------------------------------------------------------------------------------------------- 11.37s
nc_fail2ban : install fail2ban ------------------------------------------------------------------------------------------------------------------------- 10.57s
nc_fail2ban : enable seboolean settings ----------------------------------------------------------------------------------------------------------------- 9.97s
prep_nextcloud : download nextcloud archive ------------------------------------------------------------------------------------------------------------- 8.62s
prep_nginx : install needed packages -------------------------------------------------------------------------------------------------------------------- 7.99s
prep_redis : install needed packages -------------------------------------------------------------------------------------------------------------------- 4.99s
prep_nginx : update os ---------------------------------------------------------------------------------------------------------------------------------- 4.65s
prep_nextcloud : restorecon ----------------------------------------------------------------------------------------------------------------------------- 4.54s
prep_nextcloud : backup jobs, upgrade apps and database tuning ------------------------------------------------------------------------------------------ 3.94s
prep_os : update os ------------------------------------------------------------------------------------------------------------------------------------- 3.32s
prep_nextcloud : run nextcloud cronjob ------------------------------------------------------------------------------------------------------------------ 3.15s
prep_php : selinux targets ------------------------------------------------------------------------------------------------------------------------------ 3.06s
[root@ip-172-31-55-35 nextcloud]# git diff inventory
diff --git a/inventory b/inventory
index 134fd1d..08aca50 100644
--- a/inventory
+++ b/inventory
@@ -5,7 +5,7 @@ localhost ansible_connection=local

 # Server domain name
 # Default is the fqdn of the machine
-# fqdn       = nc.example.org
+fqdn       = xxx.xxx.xxx

 # selfsigned certificate as default
 ssl_certificate_type  = 'selfsigned'