You've already forked ansible-role-common
Migrate to common_ prefixed vars
This commit is contained in:
2
.ansible-lint
Normal file
2
.ansible-lint
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
skip_list:
|
||||||
|
- role-name
|
||||||
33
.yamllint
Normal file
33
.yamllint
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
---
|
||||||
|
# Based on ansible-lint config
|
||||||
|
extends: default
|
||||||
|
|
||||||
|
rules:
|
||||||
|
braces:
|
||||||
|
max-spaces-inside: 1
|
||||||
|
level: error
|
||||||
|
brackets:
|
||||||
|
max-spaces-inside: 1
|
||||||
|
level: error
|
||||||
|
colons:
|
||||||
|
max-spaces-after: -1
|
||||||
|
level: error
|
||||||
|
commas:
|
||||||
|
max-spaces-after: -1
|
||||||
|
level: error
|
||||||
|
comments: disable
|
||||||
|
comments-indentation: disable
|
||||||
|
document-start: disable
|
||||||
|
empty-lines:
|
||||||
|
max: 3
|
||||||
|
level: error
|
||||||
|
hyphens:
|
||||||
|
level: error
|
||||||
|
indentation: disable
|
||||||
|
key-duplicates: enable
|
||||||
|
line-length: disable
|
||||||
|
new-line-at-end-of-file: disable
|
||||||
|
new-lines:
|
||||||
|
type: unix
|
||||||
|
trailing-spaces: disable
|
||||||
|
truthy: disable
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
}
|
}
|
||||||
- { dest: /etc/postfix/main.cf,
|
- { dest: /etc/postfix/main.cf,
|
||||||
regexp: "^.?relayhost =",
|
regexp: "^.?relayhost =",
|
||||||
line: "relayhost = {{ relayhost }}"
|
line: "relayhost = {{ common_postfix_relayhost }}"
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
dest: /etc/postfix/main.cf,
|
dest: /etc/postfix/main.cf,
|
||||||
@@ -33,11 +33,11 @@
|
|||||||
name: postfix
|
name: postfix
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
when: postfix_configure
|
when: common_postfix_configure
|
||||||
|
|
||||||
- name: Ensure root forwarding address is set
|
- name: Ensure root forwarding address is set
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: ~/.forward
|
dest: ~/.forward
|
||||||
regexp: "{{ root_email }}"
|
regexp: "{{ common_root_email }}"
|
||||||
line: "{{ root_email }}"
|
line: "{{ common_root_email }}"
|
||||||
create: yes
|
create: yes
|
||||||
|
|||||||
Reference in New Issue
Block a user