diff --git a/roles/docker-nextcloud/README.md b/roles/docker-nextcloud/README.md index 4050968a..85d1c77f 100644 --- a/roles/docker-nextcloud/README.md +++ b/roles/docker-nextcloud/README.md @@ -26,6 +26,7 @@ You can check the status of the update by typing in: If nextcloud stays in the maintenance mode after the update try the following: ```bash + docker exec -it -u www-data nextcloud_application_1 /var/www/html/occ maintenance:mode --on docker exec -it -u www-data nextcloud_application_1 /var/www/html/occ upgrade docker exec -it -u www-data nextcloud_application_1 /var/www/html/occ maintenance:mode --off ``` diff --git a/roles/native-journalctl/readme.md b/roles/native-journalctl/readme.md new file mode 100644 index 00000000..928c28ca --- /dev/null +++ b/roles/native-journalctl/readme.md @@ -0,0 +1,7 @@ +# role native-journalctl + +# live monitoring + +```bash + watch -n 0.5 'journalctl -n 20 --no-pager' +``` diff --git a/roles/native-user-administrator/files/administrator b/roles/native-user-administrator/files/administrator new file mode 100644 index 00000000..122be9da --- /dev/null +++ b/roles/native-user-administrator/files/administrator @@ -0,0 +1 @@ +administrator ALL=(ALL:ALL) ALL diff --git a/roles/native-user-administrator/files/administrator.conf b/roles/native-user-administrator/files/administrator.conf deleted file mode 100644 index d25ccd6c..00000000 --- a/roles/native-user-administrator/files/administrator.conf +++ /dev/null @@ -1,2 +0,0 @@ -Defaults targetpw -administrator ALL=(ALL) ALL diff --git a/roles/native-user-administrator/tasks/main.yml b/roles/native-user-administrator/tasks/main.yml index 6eea1ee5..f3c21c83 100644 --- a/roles/native-user-administrator/tasks/main.yml +++ b/roles/native-user-administrator/tasks/main.yml @@ -16,5 +16,8 @@ - name: grant administrator sudo rights with password copy: - src: "administrator.conf" - dest: /etc/sudoers.d/administrator.conf + src: "administrator" + dest: /etc/sudoers.d/administrator + mode: '0644' + owner: root + group: root