mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-11-03 20:31:26 +01:00 
			
		
		
		
	Update to 2022-02-28 18:00
This commit is contained in:
		@@ -7,7 +7,7 @@
 | 
				
			|||||||
    - vars/{{ ansible_distribution }}.yml
 | 
					    - vars/{{ ansible_distribution }}.yml
 | 
				
			||||||
    - vars/{{ ansible_os_family }}.yml
 | 
					    - vars/{{ ansible_os_family }}.yml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- include: facts.yml
 | 
					- include_tasks: facts.yml
 | 
				
			||||||
- include_tasks: utils.yml
 | 
					- include_tasks: utils.yml
 | 
				
			||||||
- include_tasks: hostname.yml
 | 
					- include_tasks: hostname.yml
 | 
				
			||||||
- include_tasks: tz.yml
 | 
					- include_tasks: tz.yml
 | 
				
			||||||
@@ -15,9 +15,9 @@
 | 
				
			|||||||
  when:
 | 
					  when:
 | 
				
			||||||
    - ansible_virtualization_role == 'host' or ansible_virtualization_type != 'lxc'
 | 
					    - ansible_virtualization_role == 'host' or ansible_virtualization_type != 'lxc'
 | 
				
			||||||
    - ansible_os_family == 'RedHat'
 | 
					    - ansible_os_family == 'RedHat'
 | 
				
			||||||
- include: mail.yml
 | 
					- include_tasks: mail.yml
 | 
				
			||||||
- include_tasks: system.yml
 | 
					- include_tasks: system.yml
 | 
				
			||||||
- include: ansible.yml
 | 
					- include_tasks: ansible.yml
 | 
				
			||||||
- include_tasks: hardware.yml
 | 
					- include_tasks: hardware.yml
 | 
				
			||||||
  when: ansible_virtualization_role == 'host'
 | 
					  when: ansible_virtualization_role == 'host'
 | 
				
			||||||
- include_tasks: guest.yml
 | 
					- include_tasks: guest.yml
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,6 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- include: install.yml
 | 
					- include_tasks: install.yml
 | 
				
			||||||
- include: cleanup.yml
 | 
					  tags: always
 | 
				
			||||||
 | 
					- include_tasks: cleanup.yml
 | 
				
			||||||
 | 
					  tags: always
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,11 +1,19 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- include: user.yml
 | 
					- include_tasks: user.yml
 | 
				
			||||||
- include: directories.yml
 | 
					  tags: always
 | 
				
			||||||
- include: facts.yml
 | 
					- include_tasks: directories.yml
 | 
				
			||||||
- include: install.yml
 | 
					  tags: always
 | 
				
			||||||
- include: conf.yml
 | 
					- include_tasks: facts.yml
 | 
				
			||||||
- include: iptables.yml
 | 
					  tags: always
 | 
				
			||||||
 | 
					- include_tasks: install.yml
 | 
				
			||||||
 | 
					  tags: always
 | 
				
			||||||
 | 
					- include_tasks: conf.yml
 | 
				
			||||||
 | 
					  tags: always
 | 
				
			||||||
 | 
					- include_tasks: iptables.yml
 | 
				
			||||||
  when: iptables_manage | default(True)
 | 
					  when: iptables_manage | default(True)
 | 
				
			||||||
- include: services.yml
 | 
					  tags: always
 | 
				
			||||||
- include: cleanup.yml
 | 
					- include_tasks: services.yml
 | 
				
			||||||
 | 
					  tags: always
 | 
				
			||||||
 | 
					- include_tasks: cleanup.yml
 | 
				
			||||||
 | 
					  tags: always
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,10 +1,17 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- include: directories.yml
 | 
					- include_tasks: directories.yml
 | 
				
			||||||
- include: facts.yml
 | 
					  tags: always
 | 
				
			||||||
- include: install.yml
 | 
					- include_tasks: facts.yml
 | 
				
			||||||
- include: conf.yml
 | 
					  tags: always
 | 
				
			||||||
- include: iptables.yml
 | 
					- include_tasks: install.yml
 | 
				
			||||||
 | 
					  tags: always
 | 
				
			||||||
 | 
					- include_tasks: conf.yml
 | 
				
			||||||
 | 
					  tags: always
 | 
				
			||||||
 | 
					- include_tasks: iptables.yml
 | 
				
			||||||
  when: iptables_manage | default(True)
 | 
					  when: iptables_manage | default(True)
 | 
				
			||||||
- include: services.yml
 | 
					  tags: always
 | 
				
			||||||
- include: cleanup.yml
 | 
					- include_tasks: services.yml
 | 
				
			||||||
 | 
					  tags: always
 | 
				
			||||||
 | 
					- include_tasks: cleanup.yml
 | 
				
			||||||
 | 
					  tags: always
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,12 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- include: facts.yml
 | 
					- include_tasks: facts.yml
 | 
				
			||||||
- include: directories.yml
 | 
					  tags: always
 | 
				
			||||||
- include: install.yml
 | 
					- include_tasks: directories.yml
 | 
				
			||||||
- include: conf.yml
 | 
					  tags: always
 | 
				
			||||||
- include: service.yml
 | 
					- include_tasks: install.yml
 | 
				
			||||||
 | 
					  tags: always
 | 
				
			||||||
 | 
					- include_tasks: conf.yml
 | 
				
			||||||
 | 
					  tags: always
 | 
				
			||||||
 | 
					- include_tasks: service.yml
 | 
				
			||||||
 | 
					  tags: always
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,11 +8,11 @@ etherpad_root_dir: /opt/etherpad_{{ etherpad_id }}
 | 
				
			|||||||
# Unix account under which etherpad will run. The user will be created if it doesn't exist
 | 
					# Unix account under which etherpad will run. The user will be created if it doesn't exist
 | 
				
			||||||
etherpad_user: etherpad_{{ etherpad_id }}
 | 
					etherpad_user: etherpad_{{ etherpad_id }}
 | 
				
			||||||
# Version to deploy
 | 
					# Version to deploy
 | 
				
			||||||
etherpad_version: 1.8.16
 | 
					etherpad_version: 1.8.17
 | 
				
			||||||
# URL from where the archive will be downloaded
 | 
					# URL from where the archive will be downloaded
 | 
				
			||||||
etherpad_archive_url: https://github.com/ether/etherpad-lite/archive/{{ etherpad_version }}.tar.gz
 | 
					etherpad_archive_url: https://github.com/ether/etherpad-lite/archive/{{ etherpad_version }}.tar.gz
 | 
				
			||||||
# Expected sha1 of the archive, to check the download were OK
 | 
					# Expected sha256 of the archive, to check the download were OK
 | 
				
			||||||
etherpad_archive_sha1: 048801cdcf597a1b3b14c7ef560daa839e836435
 | 
					etherpad_archive_sha256: 3b51eb0259764669dedfb4d13cdbe8d4a2dea37735fe32941aac39b5def9f99b
 | 
				
			||||||
# Port on which the service will listen
 | 
					# Port on which the service will listen
 | 
				
			||||||
etherpad_port: 9003
 | 
					etherpad_port: 9003
 | 
				
			||||||
# List of IP/CIDR for which the port will be opened (if iptables_manage == True)
 | 
					# List of IP/CIDR for which the port will be opened (if iptables_manage == True)
 | 
				
			||||||
@@ -40,8 +40,8 @@ etherpad_theme: colibris
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# List of plugins to install
 | 
					# List of plugins to install
 | 
				
			||||||
etherpad_plugins_base:
 | 
					etherpad_plugins_base:
 | 
				
			||||||
  - delete_after_delay
 | 
					  - adminpads2
 | 
				
			||||||
  - delete_empty_pads
 | 
					  - markdown
 | 
				
			||||||
etherpad_plugins_extra: []
 | 
					etherpad_plugins_extra: []
 | 
				
			||||||
etherpad_plugins: "{{ etherpad_plugins_base + etherpad_plugins_extra }}"
 | 
					etherpad_plugins: "{{ etherpad_plugins_base + etherpad_plugins_extra }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,7 @@
 | 
				
			|||||||
      get_url:
 | 
					      get_url:
 | 
				
			||||||
        url: "{{ etherpad_archive_url }}"
 | 
					        url: "{{ etherpad_archive_url }}"
 | 
				
			||||||
        dest: "{{ etherpad_root_dir }}/tmp"
 | 
					        dest: "{{ etherpad_root_dir }}/tmp"
 | 
				
			||||||
        checksum: "sha1:{{ etherpad_archive_sha1 }}"
 | 
					        checksum: "sha256:{{ etherpad_archive_sha256 }}"
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    - name: Extract etherpad
 | 
					    - name: Extract etherpad
 | 
				
			||||||
      unarchive:
 | 
					      unarchive:
 | 
				
			||||||
@@ -34,41 +34,20 @@
 | 
				
			|||||||
  tags: etherpad
 | 
					  tags: etherpad
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Install node modules
 | 
					- name: Install node modules
 | 
				
			||||||
  npm:
 | 
					  command: sh ./bin/installDeps.sh
 | 
				
			||||||
    path: "{{ etherpad_root_dir }}/app/src"
 | 
					  args:
 | 
				
			||||||
    state: "{{ (etherpad_install_mode == 'none') | ternary('present','latest') }}"
 | 
					    chdir: "{{ etherpad_root_dir }}/app"
 | 
				
			||||||
  become_user: "{{ etherpad_user }}"
 | 
					  become_user: "{{ etherpad_user }}"
 | 
				
			||||||
 | 
					  when: etherpad_install_mode != 'none'
 | 
				
			||||||
  notify: restart etherpad
 | 
					  notify: restart etherpad
 | 
				
			||||||
  tags: etherpad
 | 
					  tags: etherpad
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Install plugins
 | 
					- name: Install plugins
 | 
				
			||||||
  npm:
 | 
					  command: "{{ etherpad_root_dir }}/app/src/node_modules/.bin/npm install --no-save --legacy-peer-deps {{ etherpad_plugins | map('regex_replace', '(.+)', 'ep_\\1') | list | join(' ') }}"
 | 
				
			||||||
    name: ep_{{ item }}
 | 
					  args:
 | 
				
			||||||
    path: "{{ etherpad_root_dir }}/app/src"
 | 
					    chdir: "{{ etherpad_root_dir }}/app/"
 | 
				
			||||||
    state: "{{ (etherpad_install_mode == 'none') | ternary('present','latest') }}"
 | 
					 | 
				
			||||||
  loop: "{{ etherpad_plugins }}"
 | 
					 | 
				
			||||||
  become_user: "{{ etherpad_user }}"
 | 
					  become_user: "{{ etherpad_user }}"
 | 
				
			||||||
  notify: restart etherpad
 | 
					  when: etherpad_install_mode != 'none'
 | 
				
			||||||
  tags: etherpad
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- name: Link plugins
 | 
					 | 
				
			||||||
  file: src={{ etherpad_root_dir }}/app/src/node_modules/ep_{{ item }} dest={{ etherpad_root_dir }}/app/node_modules/ep_{{ item }} state=link
 | 
					 | 
				
			||||||
  loop: "{{ etherpad_plugins }}"
 | 
					 | 
				
			||||||
  notify: restart etherpad
 | 
					 | 
				
			||||||
  tags: etherpad
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- name: List linked plugins
 | 
					 | 
				
			||||||
  shell: find {{ etherpad_root_dir }}/app/node_modules/ -type l -maxdepth 1 -mindepth 1 -exec basename "{}" \;
 | 
					 | 
				
			||||||
  register: etherpad_linked_plugins
 | 
					 | 
				
			||||||
  changed_when: False
 | 
					 | 
				
			||||||
  tags: etherpad
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- name: Unlink unmanaged plugins
 | 
					 | 
				
			||||||
  file: path={{ etherpad_root_dir }}/app/node_modules/{{ item }} state=absent
 | 
					 | 
				
			||||||
  loop: "{{ etherpad_linked_plugins.stdout_lines }}"
 | 
					 | 
				
			||||||
  when:
 | 
					 | 
				
			||||||
    - item | regex_replace('^ep_', '') not in etherpad_plugins
 | 
					 | 
				
			||||||
    - item != 'ep_etherpad-lite'
 | 
					 | 
				
			||||||
  notify: restart etherpad
 | 
					  notify: restart etherpad
 | 
				
			||||||
  tags: etherpad
 | 
					  tags: etherpad
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,17 +1,28 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- include: user.yml
 | 
					- include_tasks: user.yml
 | 
				
			||||||
- include: directories.yml
 | 
					  tags: always
 | 
				
			||||||
- include: facts.yml
 | 
					- include_tasks: directories.yml
 | 
				
			||||||
- include: archive_pre.yml
 | 
					  tags: always
 | 
				
			||||||
  when: etherpad_install_mode == 'upgrade'
 | 
					- include_tasks: facts.yml
 | 
				
			||||||
- include: install.yml
 | 
					  tags: always
 | 
				
			||||||
- include: conf.yml
 | 
					- include_tasks: archive_pre.yml
 | 
				
			||||||
- include: iptables.yml
 | 
					  when: etherpad_install_mode | default('none') == 'upgrade'
 | 
				
			||||||
 | 
					  tags: always
 | 
				
			||||||
 | 
					- include_tasks: install.yml
 | 
				
			||||||
 | 
					  tags: always
 | 
				
			||||||
 | 
					- include_tasks: conf.yml
 | 
				
			||||||
 | 
					  tags: always
 | 
				
			||||||
 | 
					- include_tasks: iptables.yml
 | 
				
			||||||
  when: iptables_manage | default(True)
 | 
					  when: iptables_manage | default(True)
 | 
				
			||||||
- include: service.yml
 | 
					  tags: always
 | 
				
			||||||
- include: write_version.yml
 | 
					- include_tasks: service.yml
 | 
				
			||||||
- include: archive_post.yml
 | 
					  tags: always
 | 
				
			||||||
  when: etherpad_install_mode == 'upgrade'
 | 
					- include_tasks: write_version.yml
 | 
				
			||||||
- include: cleanup.yml
 | 
					  tags: always
 | 
				
			||||||
 | 
					- include_tasks: archive_post.yml
 | 
				
			||||||
 | 
					  when: etherpad_install_mode | default('none') == 'upgrade'
 | 
				
			||||||
 | 
					  tags: always
 | 
				
			||||||
 | 
					- include_tasks: cleanup.yml
 | 
				
			||||||
 | 
					  tags: always
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,15 +1,15 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- import_tasks: ../include_taskss/disable_selinux.yml
 | 
					- import_tasks: ../includes/disable_selinux.yml
 | 
				
			||||||
  tags: fpbx
 | 
					  tags: fpbx
 | 
				
			||||||
- include_tasks_tasks: directories.yml
 | 
					- include_tasks: directories.yml
 | 
				
			||||||
  tags: always
 | 
					  tags: always
 | 
				
			||||||
- include_tasks_tasks: facts.yml
 | 
					- include_tasks: facts.yml
 | 
				
			||||||
  tags: always
 | 
					  tags: always
 | 
				
			||||||
- include_tasks_tasks: archive_pre.yml
 | 
					- include_tasks: archive_pre.yml
 | 
				
			||||||
  when: fpbx_install_mode | default('none') == 'upgrade'
 | 
					  when: fpbx_install_mode | default('none') == 'upgrade'
 | 
				
			||||||
  tags: always
 | 
					  tags: always
 | 
				
			||||||
- include_tasks_tasks: install.yml
 | 
					- include_tasks: install.yml
 | 
				
			||||||
  tags: always
 | 
					  tags: always
 | 
				
			||||||
- include_tasks: conf.yml
 | 
					- include_tasks: conf.yml
 | 
				
			||||||
  tags: always
 | 
					  tags: always
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								roles/lemonldap_ng/files/logos/wbo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								roles/lemonldap_ng/files/logos/wbo.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 1.3 KiB  | 
@@ -1,10 +1,16 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Where unifi will be installed
 | 
				
			||||||
unifi_root_dir: /opt/unifi
 | 
					unifi_root_dir: /opt/unifi
 | 
				
			||||||
unifi_version: 6.5.55
 | 
					# Version to deploy
 | 
				
			||||||
 | 
					unifi_version: 7.0.23
 | 
				
			||||||
 | 
					# URL to get the installation tarball
 | 
				
			||||||
unifi_archive_url: https://www.ubnt.com/downloads/unifi/{{ unifi_version }}/UniFi.unix.zip
 | 
					unifi_archive_url: https://www.ubnt.com/downloads/unifi/{{ unifi_version }}/UniFi.unix.zip
 | 
				
			||||||
unifi_archive_sha1: 8edc8081ab99eeeb2bdba28f1cfea6e4ce052c98
 | 
					# Expected sha256
 | 
				
			||||||
 | 
					unifi_archive_sha256: 90fc6d87254cf211f6e4a8b010265d6365b9fae1e78e20cb023c8af8b406fc21
 | 
				
			||||||
 | 
					# Should ansible handle upgrades (if False, only initial install will be done)
 | 
				
			||||||
unifi_manage_upgrade: True
 | 
					unifi_manage_upgrade: True
 | 
				
			||||||
 | 
					# List of ports used by UniFi controler
 | 
				
			||||||
unifi_http_port: 8080
 | 
					unifi_http_port: 8080
 | 
				
			||||||
unifi_https_port: 8443
 | 
					unifi_https_port: 8443
 | 
				
			||||||
unifi_portal_http_port: 8880
 | 
					unifi_portal_http_port: 8880
 | 
				
			||||||
@@ -16,7 +22,9 @@ unifi_http_ports:
 | 
				
			|||||||
  - "{{ unifi_portal_https_port }}"
 | 
					  - "{{ unifi_portal_https_port }}"
 | 
				
			||||||
unifi_stun_ports:
 | 
					unifi_stun_ports:
 | 
				
			||||||
  - 3478
 | 
					  - 3478
 | 
				
			||||||
 | 
					# List of IP addresses/CIDR having access to http ports
 | 
				
			||||||
unifi_http_src_ip: []
 | 
					unifi_http_src_ip: []
 | 
				
			||||||
 | 
					# List of IP addresses/CIDR having access to stun ports
 | 
				
			||||||
unifi_stun_src_ip: []
 | 
					unifi_stun_src_ip: []
 | 
				
			||||||
# Max memory, in MB
 | 
					# Max memory, in MB
 | 
				
			||||||
unifi_mem_limit: 2048
 | 
					unifi_mem_limit: 2048
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -107,7 +107,7 @@
 | 
				
			|||||||
  get_url:
 | 
					  get_url:
 | 
				
			||||||
    url: "{{ unifi_archive_url }}"
 | 
					    url: "{{ unifi_archive_url }}"
 | 
				
			||||||
    dest: "{{ unifi_root_dir }}/tmp"
 | 
					    dest: "{{ unifi_root_dir }}/tmp"
 | 
				
			||||||
    checksum: "sha1:{{ unifi_archive_sha1 }}"
 | 
					    checksum: "sha256:{{ unifi_archive_sha256 }}"
 | 
				
			||||||
  when: unifi_install_mode != 'none'
 | 
					  when: unifi_install_mode != 'none'
 | 
				
			||||||
  tags: unifi
 | 
					  tags: unifi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -236,4 +236,5 @@
 | 
				
			|||||||
  copy: content={{ unifi_version }} dest={{ unifi_root_dir }}/meta/ansible_version
 | 
					  copy: content={{ unifi_version }} dest={{ unifi_root_dir }}/meta/ansible_version
 | 
				
			||||||
  tags: unifi
 | 
					  tags: unifi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- include: filebeat.yml
 | 
					- include_tasks: filebeat.yml
 | 
				
			||||||
 | 
					  tags: always
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user