Skip to content

Commit

Permalink
Add a sample file to test nagative + lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-de-bock committed Apr 26, 2024
1 parent 54943d9 commit 1c08c71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ The machine needs to be prepared. In CI this is done using [`molecule/default/pr
ansible.builtin.file:
path: "{{ item }}"
state: directory
mode: "0755"
loop:
- /var/log/example
- /var/log/example-frequency
Expand All @@ -128,6 +129,7 @@ The machine needs to be prepared. In CI this is done using [`molecule/default/pr
ansible.builtin.copy:
dest: "{{ item }}"
content: "example"
mode: "0644"
loop:
- /var/log/example/app.log
- /var/log/example-frequency/app.log
Expand All @@ -139,6 +141,7 @@ The machine needs to be prepared. In CI this is done using [`molecule/default/pr
- /var/log/example-script/app.log
- /var/log/example-sharedscripts/app.log
- /var/log/example-dateyesterday/app.log
- /var/log/example-keep-negative/app.log
- /var/log/btmp
- /var/log/wtmp
- /var/log/hawkey.log
Expand Down
3 changes: 3 additions & 0 deletions molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
ansible.builtin.file:
path: "{{ item }}"
state: directory
mode: "0755"
loop:
- /var/log/example
- /var/log/example-frequency
Expand All @@ -30,6 +31,7 @@
ansible.builtin.copy:
dest: "{{ item }}"
content: "example"
mode: "0644"
loop:
- /var/log/example/app.log
- /var/log/example-frequency/app.log
Expand All @@ -41,6 +43,7 @@
- /var/log/example-script/app.log
- /var/log/example-sharedscripts/app.log
- /var/log/example-dateyesterday/app.log
- /var/log/example-keep-negative/app.log
- /var/log/btmp
- /var/log/wtmp
- /var/log/hawkey.log

0 comments on commit 1c08c71

Please sign in to comment.