From d6f82697dd0fec406efc27710eb9c0fb4fabc751 Mon Sep 17 00:00:00 2001 From: George Hunt Date: Mon, 5 Jun 2017 11:01:24 -0700 Subject: [PATCH 1/5] can not initialize nextcloud when it is not enabled --- roles/nextcloud/tasks/nextcloud_enabled.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/nextcloud/tasks/nextcloud_enabled.yml b/roles/nextcloud/tasks/nextcloud_enabled.yml index e4451e254..bba89ae76 100644 --- a/roles/nextcloud/tasks/nextcloud_enabled.yml +++ b/roles/nextcloud/tasks/nextcloud_enabled.yml @@ -29,6 +29,7 @@ - name: Run nextcloud initial install wizard shell: curl http://{{ xsce_hostname }}{{ nextcloud_url }}/index.php + when: nextcloud_enabled - name: Remove Rewrite URL lineinfile: regexp='overwrite.cli.url' From 86e40bbda4dab41d3ba0247b20098db8c9ec3020 Mon Sep 17 00:00:00 2001 From: George Hunt Date: Mon, 5 Jun 2017 12:23:08 -0700 Subject: [PATCH 2/5] somehow we lost some definitions in Debian.yml, called in dhcpcd-dbus rather than dhcpcd5, which works --- roles/network/tasks/debian.yml | 2 +- vars/Debian.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/network/tasks/debian.yml b/roles/network/tasks/debian.yml index bfb0af6b9..da00b4573 100644 --- a/roles/network/tasks/debian.yml +++ b/roles/network/tasks/debian.yml @@ -25,7 +25,7 @@ ignore_errors: True - name: Get the dhcp client daemon used in recent raspbian - package: name=dhcpcd-dbus + package: name=dhcpcd5 state=present - name: for upgrades from earlier 6.2, remove br0 file diff --git a/vars/Debian.yml b/vars/Debian.yml index 8b75d5a54..f166389aa 100644 --- a/vars/Debian.yml +++ b/vars/Debian.yml @@ -1,5 +1,7 @@ is_debian: True is_debuntu: True +is_ubuntu: False +is_redhat: False dns_service: bind9 dns_user: bind proxy: squid3 From 76d088e13023b5a89d28f224bc8e64b8222bbdac Mon Sep 17 00:00:00 2001 From: George Hunt Date: Mon, 5 Jun 2017 12:39:03 -0700 Subject: [PATCH 3/5] nextcloud enabled failed due to lack of curl -- load it during regular package installation --- roles/2-common/tasks/packages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/2-common/tasks/packages.yml b/roles/2-common/tasks/packages.yml index 8a57a09e6..dd74a5db7 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -76,6 +76,7 @@ - wget - openssl #FC 18 does not supply, but pear requires - gawk + - curl tags: - download From 42e182bb1dc0f9334bc5eb38c83841b4171ec4bc Mon Sep 17 00:00:00 2001 From: George Hunt Date: Mon, 5 Jun 2017 16:25:12 -0700 Subject: [PATCH 4/5] undo the Debian.yml changes --- vars/Debian.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/vars/Debian.yml b/vars/Debian.yml index f166389aa..8b75d5a54 100644 --- a/vars/Debian.yml +++ b/vars/Debian.yml @@ -1,7 +1,5 @@ is_debian: True is_debuntu: True -is_ubuntu: False -is_redhat: False dns_service: bind9 dns_user: bind proxy: squid3 From 580dcdafa7c19acc534994f4536e6fcc5e0ff3b1 Mon Sep 17 00:00:00 2001 From: George Hunt Date: Mon, 5 Jun 2017 18:46:25 -0400 Subject: [PATCH 5/5] no libapach2 in centos. just php. no php-magick in centos --- roles/nextcloud/tasks/main.yml | 9 +++++---- vars/Debian.yml | 1 - 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/nextcloud/tasks/main.yml b/roles/nextcloud/tasks/main.yml index a3224e83a..ed1f9f203 100644 --- a/roles/nextcloud/tasks/main.yml +++ b/roles/nextcloud/tasks/main.yml @@ -17,7 +17,7 @@ - download - name: Install list of packages for debuntu - apt: name={{ item }} state=installed + package: name={{ item }} state=present with_items: - libapache2-mod-php5 - php{{ php_version }}-gd @@ -30,16 +30,17 @@ when: is_debuntu - name: Install list of packages - apt: name={{ item }} state=installed + package: name={{ item }} state=present with_items: - - libapache2-mod-php5 + - php - php-gd - php-json - php-mysql - php-curl - php-intl - php-mcrypt - - php-imagick +# centos does not have a package for php-imagick +# - php-imagick when: is_redhat - name: Copy it to permanent location /opt diff --git a/vars/Debian.yml b/vars/Debian.yml index 8b75d5a54..feb47f8b3 100644 --- a/vars/Debian.yml +++ b/vars/Debian.yml @@ -5,7 +5,6 @@ dns_user: bind proxy: squid3 proxy_user: proxy apache_service: apache2 -apache_user: apache apache_config_dir: apache2/sites-available apache_data: www-data apache_log_dir: /var/log/apache2