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 @@
- name: create motd file
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:
pkg: "{{ item }}"
update_cache: yes
state: installed
state: present
with_items:
- apt-transport-https
- name: add debian repo keys
- name: add debian repo keys
apt_key:
url: "{{ item }}"
state: present
with_items: "{{ debian_keys }}"
when: debian_keys
- name: set debian repos
template: src=sources.list.j2 dest=/etc/apt/sources.list
- name: set debian repos
template: src=sources.list.j2 dest=/etc/apt/sources.list
- name: install common packages
apt:
pkg: "{{ item }}"
update_cache: yes
state: installed
state: present
with_items:
- vim
- wget
- psmisc
- tree
- name: deploy sshd config
template: src=sshd_config.j2 dest=/etc/ssh/sshd_config
notify: restart sshd
- name: deploy sshd config
template: src=sshd_config.j2 dest=/etc/ssh/sshd_config
notify: restart sshd
- name: add sshkeys for server
authorized_key:
user: root
authorized_key:
user: root
key: "{{ lookup('file', '../keyfiles/' + item + '.pub') }}"
with_items: "{{ administratorenteam }}"
when: administratorenteam
notify: restart sshd
notify: restart sshd
......@@ -4,7 +4,7 @@
apt:
pkg: "{{ item }}"
update_cache: yes
state: installed
state: present
with_items:
- borgbackup
- logrotate
......
......@@ -4,7 +4,7 @@
apt:
pkg: "{{ item }}"
update_cache: yes
state: installed
state: present
with_items:
- borgbackup
......
......@@ -4,7 +4,7 @@
apt:
pkg: "{{ item }}"
update_cache: yes
state: installed
state: present
with_items:
- docker-ce
- python
......
......@@ -4,7 +4,7 @@
apt:
pkg: "{{ item }}"
update_cache: yes
state: installed
state: present
with_items:
- telegraf
......@@ -12,7 +12,7 @@
apt:
pkg: "{{ item }}"
update_cache: yes
state: installed
state: present
with_items:
- hddtemp
- lm-sensors
......
......@@ -30,7 +30,7 @@
apt:
pkg: openssl
update_cache: no
state: installed
state: present
when: filestat.stat.exists == False
- name: "{{ item.path | basename }} (generate: length = {{ item.length }})"
......
......@@ -5,7 +5,7 @@
apt:
pkg: "{{ item }}"
update_cache: yes
state: installed
state: present
with_items:
- git
......
......@@ -4,7 +4,7 @@
apt:
pkg: "{{ item }}"
update_cache: yes
state: installed
state: present
with_items:
- openjdk-8-jre
- libswt-gtk-3-java
......
......@@ -4,7 +4,7 @@
apt:
pkg: "{{ item }}"
update_cache: yes
state: installed
state: present
with_items:
- mariadb-server
- mariadb-client
......
......@@ -5,7 +5,7 @@
apt:
pkg: "{{ item }}"
update_cache: yes
state: installed
state: present
with_items:
- homegear
- homegear-max
......
......@@ -4,7 +4,7 @@
apt:
pkg: "{{ item }}"
update_cache: yes
state: installed
state: present
with_items:
- oracle-java8-jdk
- openhab2-offline
......
......@@ -9,7 +9,7 @@
apt:
pkg: "{{ item }}"
update_cache: yes
state: installed
state: present
with_items:
- docker-engine
- python
......
......@@ -3,7 +3,7 @@
apt:
pkg: "{{ item }}"
update_cache: yes
state: installed
state: present
with_items:
- nginx
- git
......
......@@ -9,7 +9,7 @@
apt:
pkg: "{{ item }}"
update_cache: yes
state: installed
state: present
with_items:
- docker-ce
- python
......
......@@ -3,7 +3,7 @@
apt:
pkg: "{{ item }}"
update_cache: yes
state: installed
state: present
with_items:
- nginx
- git
......
......@@ -3,7 +3,7 @@
apt:
pkg: "{{ item }}"
update_cache: yes
state: installed
state: present
with_items:
- 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