- - name: configure ispc server
- hosts: ispc.pve
- become: true
- become_method: sudo
- roles:
- vars_files:
- - ../vars/credentials.yml
- - ../vars/ips.yml
- vars:
- - my_networks:
- - "127.0.0.0/8"
- - "[::1]/128"
- - "10.0.0.0/24"
- - "195.201.240.91/32"
- - "195.201.240.90/32"
- - "[2a01:4f8:231:96::]/64"
- - "[2a01:4f8:231:96::1:0]/112"
- handlers:
- - import_tasks: ../handlers/handlers.yml
- tasks:
- - name: install packages
- apt:
- update_cache: true
- name:
- - php5.6-memcached
- - php7.0-memcached
- - php7.1-memcached
- - php7.2-memcached
- - php7.3-memcached
- - php7.4-memcached
- - php8.0-memcached
- - php8.1-memcached
- - name: set mynetworks in postfix
- replace:
- dest: /etc/postfix/main.cf
- regexp: "^mynetworks = .*"
- replace: "mynetworks = {{ my_networks | join(' ') }}"
- notify: reload postfix
- - name: set mynetworks in rspamd
- copy:
- dest: /etc/rspamd/local.d/local_networks.inc
- content: "{{ my_networks | join('\n') | replace('[', '') | replace(']', '') }}"
- notify: reload rspamd
- - name: set reject in rspamd
- copy:
- dest: /etc/rspamd/override.d/actions.conf
- content: "reject = 100;"
- notify: reload rspamd
- - import_tasks: ../includes/user_root_ispc.yml
- - import_tasks: ../includes/vimrc.yml