Commit 9404318e authored by Ing. Matej Madeja's avatar Ing. Matej Madeja
Browse files

task2

parent bb81f0c4
all:
hosts:
device1:
ansible_port: 11022
fjsadlkfd
localhost:
ansible_user: matt
[defaults]
inventory = ./hosts
\ No newline at end of file
---
- name: "Install base pkg"
hosts:
- devices
vars:
companyBg: "company-bg.jpg"
servers:
- galaxy
- vulcan
- ameros
tasks:
- name: "Template"
template:
src: template.j2
dest: "/tmp/{{ item }}.txt"
with_items: "{{ servers }}"
tags:
- temp
- name: "Install packages"
become: yes
apt:
pkg:
- htop
- vim
- kazam
- filezilla
- bluefish
- software-properties-common
tags: packages
- name: "Add ppa:ondrej/php repo"
become: yes
apt_repository:
repo: "ppa:ondrej/php"
tags: packages
- name: "Install php 7.3"
become: yes
apt:
name: php7.3
tags: packages
- name: Download
get_url:
url: https://cdn.wallpapersafari.com/55/73/ghY4rc.jpg
dest: "{{ ansible_user_dir }}/Pictures/{{ companyBg }}"
tags:
- bg
[devices]
device1 ansible_port=11022 ansible_host=127.0.0.1 ansible_user=vagrant
[locals]
localhost ansible_user=matt ansible_connection=local
\ No newline at end of file
This is my name: {{ item }}
\ 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