Skip to content
Snippets Groups Projects
Commit d954d589 authored by Jens Sandmann's avatar Jens Sandmann
Browse files

packe state changed to present from installed because installed is depricated

parent 841d2607
No related branches found
No related tags found
No related merge requests found
Showing with 29 additions and 30 deletions
...@@ -4,44 +4,43 @@ ...@@ -4,44 +4,43 @@
- name: create motd file - name: create motd file
template: src=motd.j2 dest=/etc/motd template: src=motd.j2 dest=/etc/motd
- name: install apt-transport-https packages before adding sources - name: install apt-transport-https packages before adding sources
apt: apt:
pkg: "{{ item }}" pkg: "{{ item }}"
update_cache: yes update_cache: yes
state: installed state: present
with_items: with_items:
- apt-transport-https - apt-transport-https
- name: add debian repo keys - name: add debian repo keys
apt_key: apt_key:
url: "{{ item }}" url: "{{ item }}"
state: present state: present
with_items: "{{ debian_keys }}" with_items: "{{ debian_keys }}"
when: debian_keys when: debian_keys
- name: set debian repos - name: set debian repos
template: src=sources.list.j2 dest=/etc/apt/sources.list template: src=sources.list.j2 dest=/etc/apt/sources.list
- name: install common packages - name: install common packages
apt: apt:
pkg: "{{ item }}" pkg: "{{ item }}"
update_cache: yes update_cache: yes
state: installed state: present
with_items: with_items:
- vim - vim
- wget - wget
- psmisc - psmisc
- tree - tree
- name: deploy sshd config - name: deploy sshd config
template: src=sshd_config.j2 dest=/etc/ssh/sshd_config template: src=sshd_config.j2 dest=/etc/ssh/sshd_config
notify: restart sshd notify: restart sshd
- name: add sshkeys for server - name: add sshkeys for server
authorized_key: authorized_key:
user: root user: root
key: "{{ lookup('file', '../keyfiles/' + item + '.pub') }}" key: "{{ lookup('file', '../keyfiles/' + item + '.pub') }}"
with_items: "{{ administratorenteam }}" with_items: "{{ administratorenteam }}"
when: administratorenteam when: administratorenteam
notify: restart sshd notify: restart sshd
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
apt: apt:
pkg: "{{ item }}" pkg: "{{ item }}"
update_cache: yes update_cache: yes
state: installed state: present
with_items: with_items:
- borgbackup - borgbackup
- logrotate - logrotate
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
apt: apt:
pkg: "{{ item }}" pkg: "{{ item }}"
update_cache: yes update_cache: yes
state: installed state: present
with_items: with_items:
- borgbackup - borgbackup
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
apt: apt:
pkg: "{{ item }}" pkg: "{{ item }}"
update_cache: yes update_cache: yes
state: installed state: present
with_items: with_items:
- docker-ce - docker-ce
- python - python
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
apt: apt:
pkg: "{{ item }}" pkg: "{{ item }}"
update_cache: yes update_cache: yes
state: installed state: present
with_items: with_items:
- telegraf - telegraf
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
apt: apt:
pkg: "{{ item }}" pkg: "{{ item }}"
update_cache: yes update_cache: yes
state: installed state: present
with_items: with_items:
- hddtemp - hddtemp
- lm-sensors - lm-sensors
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
apt: apt:
pkg: openssl pkg: openssl
update_cache: no update_cache: no
state: installed state: present
when: filestat.stat.exists == False when: filestat.stat.exists == False
- name: "{{ item.path | basename }} (generate: length = {{ item.length }})" - name: "{{ item.path | basename }} (generate: length = {{ item.length }})"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
apt: apt:
pkg: "{{ item }}" pkg: "{{ item }}"
update_cache: yes update_cache: yes
state: installed state: present
with_items: with_items:
- git - git
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
apt: apt:
pkg: "{{ item }}" pkg: "{{ item }}"
update_cache: yes update_cache: yes
state: installed state: present
with_items: with_items:
- openjdk-8-jre - openjdk-8-jre
- libswt-gtk-3-java - libswt-gtk-3-java
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
apt: apt:
pkg: "{{ item }}" pkg: "{{ item }}"
update_cache: yes update_cache: yes
state: installed state: present
with_items: with_items:
- mariadb-server - mariadb-server
- mariadb-client - mariadb-client
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
apt: apt:
pkg: "{{ item }}" pkg: "{{ item }}"
update_cache: yes update_cache: yes
state: installed state: present
with_items: with_items:
- homegear - homegear
- homegear-max - homegear-max
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
apt: apt:
pkg: "{{ item }}" pkg: "{{ item }}"
update_cache: yes update_cache: yes
state: installed state: present
with_items: with_items:
- oracle-java8-jdk - oracle-java8-jdk
- openhab2-offline - openhab2-offline
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
apt: apt:
pkg: "{{ item }}" pkg: "{{ item }}"
update_cache: yes update_cache: yes
state: installed state: present
with_items: with_items:
- docker-engine - docker-engine
- python - python
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
apt: apt:
pkg: "{{ item }}" pkg: "{{ item }}"
update_cache: yes update_cache: yes
state: installed state: present
with_items: with_items:
- nginx - nginx
- git - git
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
apt: apt:
pkg: "{{ item }}" pkg: "{{ item }}"
update_cache: yes update_cache: yes
state: installed state: present
with_items: with_items:
- docker-ce - docker-ce
- python - python
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
apt: apt:
pkg: "{{ item }}" pkg: "{{ item }}"
update_cache: yes update_cache: yes
state: installed state: present
with_items: with_items:
- nginx - nginx
- git - git
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
apt: apt:
pkg: "{{ item }}" pkg: "{{ item }}"
update_cache: yes update_cache: yes
state: installed state: present
with_items: with_items:
- openvpn - openvpn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment