Commit ac8612f7 by Jocelyn Delalande

Fix deprecation warning about apt: state=installed

parent 4d565e66
- name: Install bind9
apt: pkg=bind9 state=installed update_cache=yes cache_valid_time=360
apt: pkg=bind9 state=present update_cache=yes cache_valid_time=360
- name: Build named.conf.local
template: src=named.conf.local.j2 dest=/etc/bind/named.conf.local
......
- name: Install cifs-utils
apt: pkg=cifs-utils state=installed
apt: pkg=cifs-utils state=present
- name: Install CIFS credentials file
template:
......
- name: Install required package
apt: pkg=samba state=installed
apt: pkg=samba state=present
- name: Put config file
template: src=smb.conf.j2 dest=/etc/samba/smb.conf
......
- name: Install dnsmasq package
apt: pkg=dnsmasq state=installed
apt: pkg=dnsmasq state=present
- name: Puts the default init dnsmasq file
template: src=default-dnsmasq.j2 dest=/etc/default/dnsmasq
......
- name: Installs haproxy
apt: pkg=haproxy state=installed update_cache=yes cache_valid_time=3600
apt: pkg=haproxy state=present update_cache=yes cache_valid_time=3600
- name: Set haproxy config
template: src=haproxy.cfg.j2 dest=/etc/haproxy/haproxy.cfg
......
- name: Install hostapd
apt: pkg=hostapd state=installed
apt: pkg=hostapd state=present
- name: Install ralink firmware
apt: pkg=firmware-ralink state=installed
apt: pkg=firmware-ralink state=present
- name: Install hostapd config
template: src=hostapd.conf.j2 dest=/etc/hostapd/hostapd.conf
......
......@@ -9,7 +9,7 @@
- name: Install HTTPS transport for APT
apt:
pkg: apt-transport-https
state: installed
state: present
when: not apt_https_transport.stat.exists
- name: Import the NodeSource GPG key into apt
......@@ -36,5 +36,5 @@
- name: Install Node.js
apt:
pkg: nodejs
state: installed
state: present
update_cache: yes
\ No newline at end of file
- name: install dependencies
apt: name={{ item }} force=yes state=installed
apt: name={{ item }} force=yes state=present
with_items:
- python
- python-virtualenv
......@@ -116,7 +116,7 @@
- name: install supervisor
apt: pkg=supervisor state=installed
apt: pkg=supervisor state=present
- name: set supervisord config
template: src=supervisor.j2 dest=/etc/supervisor/conf.d/lettravox.conf mode=644
......
- name: Install lxc packages
apt: pkg={{ item }} state=installed
apt: pkg={{ item }} state=present
with_items:
- lxc
- python-lxc
......
- name: Install cifs-utils
apt: pkg=cifs-utils state=installed
apt: pkg=cifs-utils state=present
- name: Ensure CIFS mount is present
mount:
......
......@@ -10,7 +10,7 @@
apt_repository: repo='ppa:mc3man/trusty-media'
- name: Install mopidy and codecs
apt: pkg={{ item }} state=installed update_cache=yes cache_valid_time=3600
apt: pkg={{ item }} state=present update_cache=yes cache_valid_time=3600
with_items:
- mopidy
- gstreamer0.10-ffmpeg # from ppa:mc3man/trusty-media, for wma
......
- name: Install required packages
apt: pkg={{ item }} state=installed
apt: pkg={{ item }} state=present
with_items:
- libasound2
- libasound2-plugins
......
- name: Install radvd package
apt: pkg=radvd state=installed
apt: pkg=radvd state=present
- name: Puts the vpn conf in place
template: src=radvd.conf.j2 dest=/etc/radvd.conf owner=radvd mode=0444
......
......@@ -3,7 +3,7 @@
# notify: restart networking
- name: Install vlan tools
apt: pkg=vlan state=installed
apt: pkg=vlan state=present
- name: Load vlan module on boot
copy: src=vlan-module.conf dest=/etc/modules-load.d/vlan.conf
......
- name: Install rsync
apt: pkg=rsync state=installed
apt: pkg=rsync state=present
- name: Check that ssh private key exists
file:
......
- name: Install rsync
apt: pkg=rsync state=installed
apt: pkg=rsync state=present
- name: Ensure user exist
user: name="{{ item.local_user }}" createhome=yes
......
- name: Install rsync
apt: pkg=rsync state=installed
apt: pkg=rsync state=present
- name: Install a recent version of btrfs-tools (from backports)
apt: pkg=btrfs-tools state=installed default_release=wheezy-backports
apt: pkg=btrfs-tools state=present default_release=wheezy-backports
- name: Put rrsync in-place
copy: src=rrsync dest=/usr/local/bin/rrsync mode=0555
......
- name: Install sane utils
apt: pkg=sane-utils state=installed
apt: pkg=sane-utils state=present
- name: Install propper udev rule
action: copy src=80-scanner-permissions.rules dest=/etc/udev/rules.d/80-scanner-permissions.rules
......
# scanbuttond do no longer exists in jessie
# replaced by scanbuttond but not working with my scanner
- name: Install scanbuttond (wheezy version)
apt: deb='http://ftp.fr.debian.org/debian/pool/main/s/scanbuttond/scanbuttond_0.2.3.cvs20090713-8_armel.deb' state=installed
apt: deb='http://ftp.fr.debian.org/debian/pool/main/s/scanbuttond/scanbuttond_0.2.3.cvs20090713-8_armel.deb' state=present
# Prevent scanbuttond to be replaced with jessie dummy package
- dpkg_selections:
......@@ -9,7 +9,7 @@
selection: hold
- name: Install conversion tools
apt: pkg={{ item }} state=installed
apt: pkg={{ item }} state=present
with_items:
- libtiff-tools
- imagemagick
......
- name: install dependencies
apt: name={{ item }} force=yes state=installed
apt: name={{ item }} force=yes state=present
with_items:
- python
- python-virtualenv
......@@ -82,7 +82,7 @@
PATH: "{{ transparency_venv_bin_path }}:{{ ansible_env.PATH }}"
- name: install supervisor
apt: pkg=supervisor state=installed
apt: pkg=supervisor state=present
- name: set supervisord config
template: src=supervisor.j2 dest=/etc/supervisor/conf.d/transparency.conf mode=644
......
- name: Install openvpn package
apt: pkg=openvpn state=installed
apt: pkg=openvpn state=present
- name: Puts the vpn conf in place
template: src=vpn-client.conf.j2 dest=/etc/openvpn/{{ vpn_name }}-client.conf
......
......@@ -2,7 +2,7 @@
user: name={{ ympd_user }}
- name: Install ympd build dependencies
apt: pkg={{ item }} state=installed update_cache=yes cache_valid_time=3600
apt: pkg={{ item }} state=present update_cache=yes cache_valid_time=3600
with_items:
- build-essential
- cmake
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment