Skip to content
Snippets Groups Projects
Commit 6655c01c authored by Christian Elberfeld's avatar Christian Elberfeld
Browse files

apt-task syntax updated

parent aa78fa2e
No related branches found
No related tags found
1 merge request!10Update Branch from Master
......@@ -6,11 +6,12 @@
- name: install apt-transport-https packages before adding sources
apt:
pkg: "{{ item }}"
name: "{{ packages }}"
update_cache: yes
state: present
with_items:
- apt-transport-https
vars:
packages:
- apt-transport-https
- name: add debian repo keys (id)
apt_key:
......@@ -31,14 +32,15 @@
- name: install common packages
apt:
pkg: "{{ item }}"
name: "{{ packages }}"
update_cache: yes
state: present
with_items:
- vim
- wget
- psmisc
- tree
vars:
packages:
- vim
- wget
- psmisc
- tree
- name: deploy sshd config
template: src=sshd_config.j2 dest=/etc/ssh/sshd_config
......
......@@ -2,14 +2,15 @@
# Pakete installieren
- name: pakete installieren
apt:
pkg: "{{ item }}"
name: "{{ packages }}"
update_cache: yes
state: present
with_items:
- borgbackup
- logrotate
- moreutils
- openssl
vars:
packages:
- borgbackup
- logrotate
- moreutils
- openssl
- name: create directory
file:
......
......@@ -2,11 +2,12 @@
# Pakete installieren
- name: pakete installieren
apt:
pkg: "{{ item }}"
name: "{{ packages }}"
update_cache: yes
state: present
with_items:
- borgbackup
vars:
packages:
- borgbackup
# User for private backups
- name: create backup user account
......
......@@ -2,13 +2,14 @@
- name: install deb packages
apt:
pkg: "{{ item }}"
name: "{{ packages }}"
update_cache: yes
state: present
with_items:
- docker-ce
- python
- python-pip
vars:
packages:
- docker-ce
- python
- python-pip
- name: uninstall pip packages
pip:
......@@ -17,9 +18,10 @@
- name: install pip packages
pip:
name: "{{ item }}"
name: "{{ packages }}"
state: present
with_items:
- docker
- docker-compose
vars:
packages:
- docker
- docker-compose
......@@ -2,21 +2,23 @@
# Pakete installieren
- name: pakete installieren
apt:
pkg: "{{ item }}"
name: "{{ packages }}"
update_cache: yes
state: present
with_items:
- telegraf
vars:
packages:
- telegraf
- name: pakete installieren (host_type = physical)
apt:
pkg: "{{ item }}"
name: "{{ packages }}"
update_cache: yes
state: present
with_items:
- hddtemp
- lm-sensors
- smartmontools
vars:
packages:
- hddtemp
- lm-sensors
- smartmontools
when: host_type == 'physical'
......
......@@ -3,11 +3,12 @@
# Pakete installieren
- name: git installieren
apt:
pkg: "{{ item }}"
name: "{{ packages }}"
update_cache: yes
state: present
with_items:
- git
vars:
packages:
- git
# Git Repo für Verwaltungsdaaten
......
......@@ -2,13 +2,14 @@
# Pakete installieren
- name: notwendige pakete installieren
apt:
pkg: "{{ item }}"
name: "{{ packages }}"
update_cache: yes
state: installed
with_items:
- python
- python-mysqldb
- openjdk-8-jre
state: present
vars:
packages:
- python
- python-mysqldb
- openjdk-8-jre
# Get secrets
- include: ../functions/get_secret.yml
......
- name: install X2go Server
apt:
pkg: "{{ item }}"
name: "{{ packages }}"
update_cache: yes
state: installed
with_items:
- x2goserver
state: present
vars:
packages:
- x2goserver
......@@ -3,15 +3,16 @@
# Pakete für homegear und Nodejs installieren
- name: install packages
apt:
pkg: "{{ item }}"
name: "{{ packages }}"
update_cache: yes
state: present
with_items:
- homegear
- homegear-max
- nodejs
- npm
notify: restart homegear
vars:
packages:
- homegear
- homegear-max
- nodejs
- npm
# Homematic Manager über npm Installieren
# Der Homematic Manager ist nicht als Systemdienst installiert
......
......@@ -2,13 +2,14 @@
- name: install packages
apt:
pkg: "{{ item }}"
name: "{{ packages }}"
update_cache: yes
state: present
with_items:
- oracle-java8-jdk
- openhab2-offline
notify: restart openhab
vars:
packages:
- oracle-java8-jdk
- openhab2-offline
- name: enable service
service:
......
# Pakete installieren
- name: nginx installieren
apt:
pkg: "{{ item }}"
name: "{{ packages }}"
update_cache: yes
state: present
with_items:
- nginx
- git
- openssl
vars:
packages:
- nginx
- git
- openssl
- name: nginx default Konfig entfernen
file:
......
# Pakete installieren
- name: nginx installieren
apt:
pkg: "{{ item }}"
name: "{{ packages }}"
update_cache: yes
state: present
with_items:
- nginx
- git
- ca-certificates
- gcc
- libssl-dev
- libffi-dev
- python
- python-dev
- virtualenv
vars:
packages:
- nginx
- git
- ca-certificates
- gcc
- libssl-dev
- libffi-dev
- python
- python-dev
- virtualenv
- name: nginx default Konfig entfernen
file:
......
# Pakete installieren
- name: openvpn installieren
apt:
pkg: "{{ item }}"
name: "{{ packages }}"
update_cache: yes
state: present
with_items:
- openvpn
vars:
packages:
- openvpn
# Log-Verzeichnis erstellen
......
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