commit
c60fdd8ff6
@ -0,0 +1,5 @@ |
|||||||
|
[defaults] |
||||||
|
INVENTORY = hosts |
||||||
|
|
||||||
|
[ssh_connections] |
||||||
|
pipelining = true |
@ -0,0 +1 @@ |
|||||||
|
username: YOUR_USERNAME |
@ -0,0 +1,2 @@ |
|||||||
|
[home] |
||||||
|
swserver ansible_host=192.168.0.29 ansible_user=YOUR_USERNAME ansible_connection=ssh ansible_ssh_private_key_file=PATH_TO_KEY |
@ -0,0 +1,6 @@ |
|||||||
|
--- |
||||||
|
- hosts: all |
||||||
|
become: yes |
||||||
|
|
||||||
|
tasks: |
||||||
|
- import_tasks: tasks/essential.yml |
@ -0,0 +1,50 @@ |
|||||||
|
- 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 |
Loading…
Reference in new issue