Skip to content

Commit

Permalink
Merge pull request #10 from christiangda/develop
Browse files Browse the repository at this point in the history
implemented issue #8, support for playbooks with --check option
  • Loading branch information
christiangda committed Dec 30, 2019
2 parents fe565b6 + 4a5e9cb commit 1860840
Show file tree
Hide file tree
Showing 36 changed files with 11 additions and 1 deletion.
Empty file modified .ansible-lint
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .travis.yml
100644 → 100755
Empty file.
Empty file modified .yamllint
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion VERSION
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.1
2.0.2
4 changes: 4 additions & 0 deletions VERSION.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# VERSION Details

## 2.0.2

* Improved to support ansible playbooks with option `--check` reporte in issue #8 [playbook fails on --check](https://github.com/christiangda/ansible-role-amazon-cloudwatch-agent/issues/8)

## 2.0.1

* Remove the need to install collectd package when you are not [Retrieve Custom Metrics with collectd](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-custom-metrics-collectd.html), reported in issue #7 --> [collectd is not a required dependency](https://github.com/christiangda/ansible-role-amazon-cloudwatch-agent/issues/7)
Expand Down
Empty file modified defaults/main.yml
100644 → 100755
Empty file.
Empty file modified handlers/main.yml
100644 → 100755
Empty file.
Empty file modified meta/main.yml
100644 → 100755
Empty file.
Empty file modified molecule/default/Dockerfile.j2
100644 → 100755
Empty file.
Empty file modified molecule/default/INSTALL.rst
100644 → 100755
Empty file.
Empty file modified molecule/default/molecule.yml
100644 → 100755
Empty file.
Empty file modified molecule/default/playbook.yml
100644 → 100755
Empty file.
Empty file modified molecule/default/prepare.yml
100644 → 100755
Empty file.
Empty file modified molecule/default/requirements.yml
100644 → 100755
Empty file.
Empty file modified molecule/default/tests/test_default.py
100644 → 100755
Empty file.
Empty file modified molecule/vagrant/INSTALL.rst
100644 → 100755
Empty file.
Empty file modified molecule/vagrant/molecule.yml
100644 → 100755
Empty file.
Empty file modified molecule/vagrant/playbook.yml
100644 → 100755
Empty file.
Empty file modified molecule/vagrant/prepare.yml
100644 → 100755
Empty file.
Empty file modified molecule/vagrant/tests/test_log_rotate.py
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions tasks/configure.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
- "Line [{{ cwa_profile }}] is not present in file {{ cwa_agent_profile_credentials_file }}"
failed_when: presence.changed
when: profile_credentials_file.stat.exists is defined and profile_credentials_file.stat.exists and presence.changed

ignore_errors: "{{ ansible_check_mode }}"
when: cwa_use_credentials

- name: Deploy {{ cwa_package }} common configuration file
Expand Down
1 change: 1 addition & 0 deletions tasks/install-debian.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@
apt:
deb: "{{ cwa_temp_path }}/{{ cwa_package }}.deb"
state: present
ignore_errors: "{{ ansible_check_mode }}"
tags:
- install
3 changes: 3 additions & 0 deletions tasks/install-redhat.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
when: >
ansible_os_family == 'RedHat' and
ansible_distribution == 'Amazon'
ignore_errors: "{{ ansible_check_mode }}"
tags:
- install

Expand All @@ -109,6 +110,7 @@
ansible_distribution_major_version == '7' or
ansible_distribution_major_version == '6'
)
ignore_errors: "{{ ansible_check_mode }}"
tags:
- install

Expand All @@ -127,5 +129,6 @@
ansible_distribution == 'RedHat'
) and
ansible_distribution_major_version == '8'
ignore_errors: "{{ ansible_check_mode }}"
tags:
- install
Empty file modified tasks/main.yml
100644 → 100755
Empty file.
Empty file modified templates/agent/amazon-cloudwatch-agent.json.j2
100644 → 100755
Empty file.
Empty file modified templates/agent/common-config.toml.j2
100644 → 100755
Empty file.
Empty file modified templates/logrotate/aws-cwa.j2
100644 → 100755
Empty file.
Empty file modified vars/amazon.yml
100644 → 100755
Empty file.
Empty file modified vars/centos.yml
100644 → 100755
Empty file.
Empty file modified vars/debian.yml
100644 → 100755
Empty file.
Empty file modified vars/main.yml
100644 → 100755
Empty file.
Empty file modified vars/redhat.yml
100644 → 100755
Empty file.
Empty file modified vars/ubuntu.yml
100644 → 100755
Empty file.

0 comments on commit 1860840

Please sign in to comment.