Skip to content

Commit b56d5a4

Browse files
committed
add no changes on run flag to keep idempotence
1 parent 97016a0 commit b56d5a4

File tree

2 files changed

+16
-70
lines changed

2 files changed

+16
-70
lines changed

CHANGELOG.md

Lines changed: 10 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,20 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
4+
5+
- [Changelog](#changelog)
6+
- [0.1.0 - 2021-11-18](#010---2021-11-18)
7+
- [Commits](#commits)
8+
9+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
10+
111
# Changelog
212

313
All notable changes to this project will be documented in this file.
414

515
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
616
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
717

8-
## [3.2.0](https://github.com/lotusnoir/ansible-system_resolv/compare/3.1.0...3.2.0) - 2025-11-25
9-
10-
### Commits
11-
12-
- update main to include success flag at the end to be able to monitor last playbook run [`388ca65`](https://github.com/lotusnoir/ansible-system_resolv/commit/388ca65f329eb3aa4afb8a735eec68fd03fdac73)
13-
14-
## [3.1.0](https://github.com/lotusnoir/ansible-system_resolv/compare/3.0.0...3.1.0) - 2025-11-18
15-
16-
### Commits
17-
18-
- fix molecule test image for rhel8 [`9b9f1e8`](https://github.com/lotusnoir/ansible-system_resolv/commit/9b9f1e806c4999f6852defa2989a147780736076)
19-
- add oraclelinux10 support + lint and core fixes [`f080200`](https://github.com/lotusnoir/ansible-system_resolv/commit/f08020078e8ffa3475db4480c3899997aee8be7e)
20-
21-
## [3.0.0](https://github.com/lotusnoir/ansible-system_resolv/compare/2.0.0...3.0.0) - 2025-10-29
22-
23-
### Commits
24-
25-
- add trixie (debian13) support [`ec21374`](https://github.com/lotusnoir/ansible-system_resolv/commit/ec213743a40e2a270c1b237b195e31779a864d61)
26-
- update core, molecule + gitlab-ci [`2ceb8fb`](https://github.com/lotusnoir/ansible-system_resolv/commit/2ceb8fb65fbbc9cf3240daf45b873212270a4dda)
27-
- fix lint [`42977fb`](https://github.com/lotusnoir/ansible-system_resolv/commit/42977fbefa863cfa02ddb5358addabd31c1b039c)
28-
- fix molecule paralelism and little updates [`0ab2891`](https://github.com/lotusnoir/ansible-system_resolv/commit/0ab2891791632313b058d44df0980df6400d7552)
29-
- add support for ubuntu24 [`5c5e561`](https://github.com/lotusnoir/ansible-system_resolv/commit/5c5e561c7890f79ba17843a74a743ad030930743)
30-
- add version on molecule play image to maintain support on old release [`25a1b8b`](https://github.com/lotusnoir/ansible-system_resolv/commit/25a1b8b355df136d65115972de0d8362e9b3905e)
31-
- update molecule [`4c69164`](https://github.com/lotusnoir/ansible-system_resolv/commit/4c69164649ffc589761bb0f9393b2edc5f5bb063)
32-
- change tasks order and add Networkmanager disable dns [`7265d0e`](https://github.com/lotusnoir/ansible-system_resolv/commit/7265d0e85d53664c0e11907b4c61dbec5627fd7e)
33-
- add redhat 9 to default supported distrib [`eadfba8`](https://github.com/lotusnoir/ansible-system_resolv/commit/eadfba8638f4e233e9d3056d63ebaf1a94c31da6)
34-
- add redhat 8 to default supported distrib [`7492efd`](https://github.com/lotusnoir/ansible-system_resolv/commit/7492efd640786eb45a374357a658a3cc8df582e2)
35-
36-
## [2.0.0](https://github.com/lotusnoir/ansible-system_resolv/compare/1.1.0...2.0.0) - 2023-09-25
37-
38-
### Commits
39-
40-
- update vars [`51d1505`](https://github.com/lotusnoir/ansible-system_resolv/commit/51d15059f3cb33469334b3cc4dde5623347211eb)
41-
- update readme + precommit + include vars [`09058ae`](https://github.com/lotusnoir/ansible-system_resolv/commit/09058ae23c7accc43f750f4a4d0429fe0ecdf3c6)
42-
- change import tasks to include in order to support facts on name [`9012076`](https://github.com/lotusnoir/ansible-system_resolv/commit/9012076f2cb424a6147ad8c73f8fbe4164e1f7c7)
43-
44-
## [1.1.0](https://github.com/lotusnoir/ansible-system_resolv/compare/1.0.0...1.1.0) - 2023-06-14
45-
46-
### Commits
47-
48-
- add debian12 support [`4dc054f`](https://github.com/lotusnoir/ansible-system_resolv/commit/4dc054f287f8975c58c3fcca925a04c54759e064)
49-
50-
## [1.0.0](https://github.com/lotusnoir/ansible-system_resolv/compare/0.3.0...1.0.0) - 2023-03-23
51-
52-
### Commits
53-
54-
- add code of conduc and small changes [`a93126b`](https://github.com/lotusnoir/ansible-system_resolv/commit/a93126b2781d81418ae3fc78959230fdb2e01b20)
55-
- add precommit for lint [`5c8724a`](https://github.com/lotusnoir/ansible-system_resolv/commit/5c8724afcdf8db4e4ed5a8493b63fec24fedcdbb)
56-
- fix checks [`0a8a2d9`](https://github.com/lotusnoir/ansible-system_resolv/commit/0a8a2d9ee1015b1626de613f33133ecb226ecd6c)
57-
- add new molecule all scenario [`9c91ae1`](https://github.com/lotusnoir/ansible-system_resolv/commit/9c91ae1ad37f925c827ce74bf021eb5bcbaf35a4)
58-
- update readme [`bf534ee`](https://github.com/lotusnoir/ansible-system_resolv/commit/bf534eee4eed04cefd0eb8cb91181ad3e5d6e8b6)
59-
- split distro for molecule tests on ci [`572a951`](https://github.com/lotusnoir/ansible-system_resolv/commit/572a9511e5292ce85a8b3e0370cac79aeae1fa48)
60-
- update checks and Readme [`68d9b08`](https://github.com/lotusnoir/ansible-system_resolv/commit/68d9b08878167c879dcd2dbc2ecbe2dac108b9f5)
61-
- remove verify [`1a0c288`](https://github.com/lotusnoir/ansible-system_resolv/commit/1a0c2885a7728413a7df772ec2e2282f967a92ba)
62-
- add molecule fix for ora9 [`41f085d`](https://github.com/lotusnoir/ansible-system_resolv/commit/41f085ddd010af1da70f5f8ef0da38bfa139a236)
63-
- update checks [`86fc60d`](https://github.com/lotusnoir/ansible-system_resolv/commit/86fc60d0bccda645f9d66c438d5ae4633ffb12d3)
64-
65-
## [0.3.0](https://github.com/lotusnoir/ansible-system_resolv/compare/0.2.0...0.3.0) - 2022-07-01
66-
67-
### Commits
68-
69-
- minor: add oracleLinux7 support [`9a43d87`](https://github.com/lotusnoir/ansible-system_resolv/commit/9a43d87a20a31a8487ce00f94adb54981e52e999)
70-
- minor: add oracleLinux support + little fixes [`6030624`](https://github.com/lotusnoir/ansible-system_resolv/commit/6030624ef6804d6218def2af1e909a0fc9c73b46)
71-
72-
## [0.2.0](https://github.com/lotusnoir/ansible-system_resolv/compare/0.1.0...0.2.0) - 2022-06-02
73-
74-
### Commits
75-
76-
- minor: add ubuntu 22 molecule test + fix lint [`5a3b4d8`](https://github.com/lotusnoir/ansible-system_resolv/commit/5a3b4d800cf74e2598deba2e08eb8b65331c73a2)
77-
7818
## 0.1.0 - 2021-11-18
7919

8020
### Commits

tasks/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
### Success run flag
3131
- name: "Ensure /var/cache/ansible exists"
32+
become: true
3233
ansible.builtin.file:
3334
path: /var/cache/ansible
3435
state: directory
@@ -39,9 +40,12 @@
3940
- ansible_os_family in ["Debian", "RedHat"]
4041
- success_run_flag is defined
4142
- success_run_flag | bool
43+
changed_when: false
44+
failed_when: false
4245
tags: always
4346

4447
- name: "Creation Successful run flag"
48+
become: true
4549
ansible.builtin.copy:
4650
dest: "/var/cache/ansible/{{ role_path | basename }}"
4751
content: "{{ ansible_date_time.iso8601 }}"
@@ -52,4 +56,6 @@
5256
- ansible_os_family in ["Debian", "RedHat"]
5357
- success_run_flag is defined
5458
- success_run_flag | bool
59+
changed_when: false
60+
failed_when: false
5561
tags: always

0 commit comments

Comments
 (0)