Commit 18b57268 authored by Ing. Matej Madeja's avatar Ing. Matej Madeja
Browse files

continuous commit

parent 91d7b850
- name: "Install prerequisities for debian"
apt:
pkg:
- lsb-release
- apt-transport-https
- ca-certificates
- name: "Add repo"
get_url:
url: https://packages.sury.org/php/apt.gpg
dest: /etc/apt/trusted.gpg.d/php.gpg
- name: "Add to source list"
shell: "echo \"deb https://packages.sury.org/php/ $(lsb_release -sc) main\" | tee /etc/apt/sources.list.d/php7.3.list"
- name: "Add ppa:ondrej/php repo"
become: yes
apt_repository:
repo: "ppa:ondrej/php"
\ No newline at end of file
---
# tasks file for lamp
- name: "Make sure that software-properties-common is installed"
become: yes
- block:
- name: "Make sure that software-properties-common is installed"
apt:
pkg:
- software-properties-common
update_cache: yes
- name: "Add ppa:ondrej/php repo"
become: yes
apt_repository:
repo: "ppa:ondrej/php"
- debug:
var: ansible_os_family
tags: debug
- name: "Install packages"
become: yes
- debug:
var: ansible_distribution
tags: debug
- include: Ubuntu.yml
when: ansible_distribution == 'Ubuntu'
- include: Debian.yml
when: ansible_distribution == 'Debian'
- name: "Install packages"
apt:
pkg:
- apache2
......@@ -24,40 +31,39 @@
- mariadb-client
update_cache: yes
# - name: "Deploy index.html"
# become: yes
# copy:
# src: "index.html"
# dest: /var/www/html/index.html
# tags:
# - files
# - name: "Deploy index.html from template"
# become: yes
# template:
# src: "index.html.j2"
# dest: /var/www/html/index.html
# tags:
# - files
- name: "Remove index.html"
become: yes
# - name: "Deploy index.html"
# become: yes
# copy:
# src: "index.html"
# dest: /var/www/html/index.html
# tags:
# - files
# - name: "Deploy index.html from template"
# become: yes
# template:
# src: "index.html.j2"
# dest: /var/www/html/index.html
# tags:
# - files
- name: "Remove index.html"
file:
path: /var/www/html/index.html
state: absent
tags:
- files
- name: "Deploy index.php"
become: yes
- name: "Deploy index.php"
copy:
src: "index.php"
dest: /var/www/html/index.php
tags:
- files
- debug:
- debug:
var: role_path
tags:
- files
become: yes
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment