Skip to content

Commit

Permalink
Cs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Mar 21, 2023
1 parent a165034 commit 34db781
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# tasks file
---
- name: configure | copy certificate files
copy:
ansible.builtin.copy:
src: "{{ item.value.src }}"
dest: "{{ item.value.dest }}"
owner: "{{ item.value.owner | default('root') }}"
Expand All @@ -12,7 +12,7 @@
- percona-client-configure-copy-certificate-files

- name: configure | update (user) configuration file(s)
template:
ansible.builtin.template:
src: root/.my.cnf.j2
dest: "{{ item.dest | default('~' + item.owner + '/.my.cnf') }}"
owner: "{{ item.owner }}"
Expand Down
4 changes: 2 additions & 2 deletions tasks/install.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# tasks file
---
- name: install | dependencies
apt:
ansible.builtin.apt:
name: "{{ percona_client_dependencies }}"
state: "{{ apt_install_state | default('latest') }}"
tags:
- percona-client-install-dependencies

- name: install | additional
apt:
ansible.builtin.apt:
name: "{{ percona_client_install }}"
state: "{{ apt_install_state | default('latest') }}"
tags:
Expand Down
8 changes: 4 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# tasks file
---
- include: version-support.yml
- ansible.builtin.import_tasks: version-support.yml
tags:
- configuration
- percona-client
- percona-client-version-support

- include: repository.yml
- ansible.builtin.import_tasks: repository.yml
tags:
- configuration
- percona-client
- percona-client-repository

- include: install.yml
- ansible.builtin.import_tasks: install.yml
tags:
- configuration
- percona-client
- percona-client-install

- include: configure.yml
- ansible.builtin.import_tasks: configure.yml
tags:
- configuration
- percona-client
Expand Down
8 changes: 4 additions & 4 deletions tasks/repository.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# tasks file
---
- name: repository | install | dependencies (pre)
apt:
ansible.builtin.apt:
name: "{{ percona_client_dependencies_pre }}"
state: "{{ apt_install_state | default('latest') }}"
update_cache: true
Expand All @@ -11,15 +11,15 @@
- percona-client-repository-install-dependencies

- name: repository | add public key
apt_key:
ansible.builtin.apt_key:
id: 9334A25F8507EFA5
keyserver: keyserver.ubuntu.com
state: present
tags:
- percona-client-repository-public-key

- name: repository | add
apt_repository:
ansible.builtin.apt_repository:
repo: "{{ item.type }} {{ item.url }} {{ item.component }}"
state: present
update_cache: true
Expand All @@ -28,7 +28,7 @@
- percona-client-repository-add

- name: repository | apt-pin packages
copy:
ansible.builtin.copy:
src: etc/apt/preferences.d/00percona.pref
dest: /etc/apt/preferences.d/00percona.pref
owner: root
Expand Down
2 changes: 1 addition & 1 deletion tasks/version-support.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# tasks file
---
- name: version support | check
fail:
ansible.builtin.fail:
msg: "Percona client version {{ percona_client_version }} is not supported"
when: percona_client_version | string not in percona_client_versions_supported
tags:
Expand Down

0 comments on commit 34db781

Please sign in to comment.