-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementing rocky linux for vagrant env
- Loading branch information
1 parent
92c4a3b
commit a60d34e
Showing
17 changed files
with
75 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ virtualbox | |
[dev:children] | ||
vagrant | ||
|
||
[app] | ||
virtualbox | ||
|
||
[app:children] | ||
vagrant | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,5 @@ collections: | |
version: 2.18.0 | ||
- name: ansible.netcommon | ||
version: 5.1.2 | ||
- community.crypto | ||
- ansible.posix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
mysql_root_user: root | ||
mysql_root_pass: root | ||
mysql_public_root_access: no | ||
mysql_mariadb_flavor: yes |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
dependencies: | ||
- role: cs.repo-mariadb | ||
when: mysql_mariadb_flavor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,37 @@ | ||
- name: Setup Mysql | ||
include_tasks: flavor/mysql.yml | ||
when: not mysql_mariadb_flavor | ||
- name: Install mysql-server | ||
dnf: | ||
name: mysql-server | ||
state: present | ||
register: mysql_install | ||
|
||
- name: Setup Mariadb | ||
include_tasks: flavor/mariadb.yml | ||
when: mysql_mariadb_flavor | ||
- name: Execute upstream mysql role | ||
import_role: | ||
name: geerlingguy.mysql | ||
vars: | ||
mysql_root_name: "{{ mysql_root_user }}" | ||
mysql_root_password: "{{ mysql_root_pass }}" | ||
mysql_root_password_update: yes | ||
mysql_daemon: mysqld | ||
mysql_packages: | ||
- mysql-server | ||
- mysql | ||
mysql_syslog_tag: mysqld | ||
mysql_pid_file: /run/mysqld/mysqld.pid | ||
mysql_socket: /var/lib/mysql/mysql.sock | ||
mysql_datadir: /var/lib/mysql | ||
mysql_log_error: /var/log/mysql/mysqld.err | ||
mysql_slow_query_log_enabled: yes | ||
mysql_slow_query_time: 1 | ||
mysql_log: "" | ||
|
||
- name: Add a line to a file if the file does not exist, without passing regexp | ||
ansible.builtin.lineinfile: | ||
path: /etc/my.cnf | ||
insertafter: "pid-file" | ||
firstmatch: true | ||
line: log-bin-trust-function-creators = 1 | ||
|
||
- name: Restart mysql | ||
ansible.builtin.service: | ||
name: mysqld | ||
state: restarted |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
dependencies: | ||
- role: cs.repo-mageops | ||
when: ansible_distribution | lower == 'centos' | ||
when: ansible_distribution | lower == 'rocky' |
6 changes: 3 additions & 3 deletions
6
roles/cs.unison/tasks/install-centos.yml → roles/cs.unison/tasks/install-rocky.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters