You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.1 KiB
50 lines
1.1 KiB
- name: Update packages
|
|
apt:
|
|
update_cache: yes
|
|
upgrade: yes
|
|
|
|
- name: Install essentials
|
|
package:
|
|
name:
|
|
- nano
|
|
- curl
|
|
- telnet
|
|
- wget
|
|
- htop
|
|
- sshguard
|
|
state: latest
|
|
|
|
# maybe disable passwordless sudo later
|
|
|
|
- name: Enable passwordless sudo for "{{username}}"
|
|
lineinfile:
|
|
dest: /etc/sudoers
|
|
regexp: "^%wheel"
|
|
line: "{{username}} ALL=(ALL) NOPASSWD: ALL"
|
|
validate: "/usr/sbin/visudo -cf %s"
|
|
|
|
- name: Install aptitute
|
|
apt: name=aptitude state=latest update_cache=yes force_apt_get=yes
|
|
|
|
- name: Install required system packages
|
|
apt: name={{ item }} state=latest update_cache=yes
|
|
loop: [ 'apt-transport-https', 'ca-certificates', 'curl', 'software-properties-common', 'python3-pip', 'virtualenv', 'python3-setuptools']
|
|
|
|
- name: Shopware Dependencies
|
|
package:
|
|
name:
|
|
- unzip
|
|
- nginx
|
|
- php7.4-fpm
|
|
- php7.4-mysql
|
|
- php7.4-json
|
|
- php7.4-curl
|
|
- php7.4-gd
|
|
- php7.4-xml
|
|
- php7.4-zip
|
|
- php7.4-opcache
|
|
- php7.4-mbstring
|
|
- php7.4-intl
|
|
- php7.4-cli
|
|
- mariadb-server
|
|
state: latest |