-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from yuichisatake/modify_for_al2023
Modify for Amazon Linux 2023
- Loading branch information
Showing
2 changed files
with
51 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
- name: import mackerel GPG key | ||
rpm_key: | ||
key: https://mackerel.io/file/cert/GPG-KEY-mackerel | ||
|
||
- name: import mackerel GPG key v2 | ||
rpm_key: | ||
key: https://mackerel.io/file/cert/GPG-KEY-mackerel-v2 | ||
|
||
- name: add repository 'mackerel' v2023 | ||
copy: | ||
src: amazonlinux-mackerel-2023.repo | ||
dest: /etc/yum.repos.d/mackerel.repo | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
|
||
- name: install mackerel-agent | ||
dnf: | ||
name: mackerel-agent | ||
state: latest | ||
ignore_errors: "{{ ansible_check_mode }}" | ||
|
||
- name: install mackerel-agent-plugins | ||
dnf: | ||
name: mackerel-agent-plugins | ||
state: latest | ||
when: mackerel_use_plugins | ||
ignore_errors: "{{ ansible_check_mode }}" | ||
notify: | ||
- restart mackerel-agent | ||
|
||
- name: install mackerel-check-plugins | ||
dnf: | ||
name: mackerel-check-plugins | ||
state: latest | ||
when: mackerel_use_plugins | ||
ignore_errors: "{{ ansible_check_mode }}" | ||
notify: | ||
- restart mackerel-agent | ||
|
||
- name: install mkr | ||
dnf: | ||
name: mkr | ||
state: latest | ||
when: mackerel_install_mkr | ||
ignore_errors: "{{ ansible_check_mode }}" |
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