You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

47 lines
1.0 KiB

- include_tasks: ../subtasks/upgrade.yml
- name: create home dirs
file:
path: ~/{{ item}}
state: directory
loop:
- bin
- git
- name: copy scripts
copy:
src: {{ item }}
dest: /home/pi/bin
mode: '0755'
loop: "{{ query('fileglob', 'scripts/*') }}"
- name: copy resources to ~
copy:
src: {{ item }}
dest: /home/pi
loop: "{{ query('fileglob', 'resources/*') }}"
- name: create nextcloud dirs
file:
path: ~/{{ item}}
state: directory
loop: "{{ ncdirs }}"
- name: Add Nextcloud mount to fstab
ansible.builtin.blockinfile:
path: /etc/fstab
marker: "# {mark} ANSIBLE MANAGED BLOCK nextcloud"
block: |
PARTUUID={ partuuid }}} /mnt/nextcloud ext4 defaults,noatime 0 1
- name: Clone docker-compose repository
ansible.builtin.git:
repo: 'https://git.olli-cloud.de/olli/dockercmd'
dest: /home/pi/git
version: master
- name: Run docker-compose up
community.docker.docker_compose:
project_src: '/home/pi/git/dockercmd/compose/nextcloud'
state: present
become: true