-
Notifications
You must be signed in to change notification settings - Fork 3
/
leapp_test.yml
executable file
·60 lines (51 loc) · 942 Bytes
/
leapp_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env ansible-playbook
---
- name: test_leapp
hosts: rhel78
tasks:
- name: packages
yum:
name:
- httpd
- mariadb-server
- MySQL-python
- php
- php-mysql
state: latest
- name: http_hello_world
copy:
src: leapp.php
dest: /var/www/html/index.php
- name: services
service:
name: "{{ item }}"
state: started
enabled: true
loop:
- httpd
- mariadb
- name: firewall
firewalld:
service: http
state: enabled
permanent: true
loop:
- name: sampledb_source
copy:
src: leappdb.sql
dest: /tmp
- name: sample_database
mysql_db:
name: leapptest
state: import
target: /tmp/leappdb.sql
register: foo
- debug:
var: foo
- name: db_user
mysql_user:
name: leapp
password: "12345"
priv: '*.*:ALL'
state: present
...