Changeset 15901


Ignore:
Timestamp:
6 Jan 2020, 00:11:18 (5 years ago)
Author:
uli
Message:

Update syntax to get rid of deprecation warnings.

Also readability is improved with notations usable in more recent ansible versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup-ansible/setup.yml

    r15358 r15901  
    3535        state: present
    3636        backup: yes
    37       when: "{{ 'NO DEFAULT' not in item }}"
     37      when: not ('NO DEFAULT' in item)
    3838      with_items:
    3939        - "{{ ansible_default_ipv4.address | default('NO DEFAULT IPv4 ADDRESS DEFINED') }}"
     
    4242    - name: install basic packages we use on each host
    4343      apt:
    44         name: "{{ item }}"
     44        name: ['rkhunter', 'screen', 'unattended-upgrades', 'apt-show-versions', 'fail2ban']
    4545        state: present
    46       with_items:
    47         - rkhunter
    48         - screen
    49         - unattended-upgrades
    50         - apt-show-versions
    51         - fail2ban
Note: See TracChangeset for help on using the changeset viewer.