Skip to content

Commit

Permalink
Merge pull request #196 from senuphtyz/master
Browse files Browse the repository at this point in the history
Add ansible_managed output to keepalived.conf
  • Loading branch information
evrardjp committed May 4, 2022
2 parents 97af8ad + 319b40f commit 0c9625b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Wheter to add {{ ansible_managed }} information on top of keepalived.conf
keepalived_show_ansible_managed: false

# If running keepalived with SELinux, you could need to compile your
# rules. Please override this list with path to files to compile.
keepalived_selinux_compile_rules:
Expand Down
5 changes: 5 additions & 0 deletions templates/keepalived.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-#}
{% if keepalived_show_ansible_managed|bool %}
#
# {{ ansible_managed }}
#
{% endif %}

{% if keepalived_global_defs is defined %}
global_defs {
Expand Down

0 comments on commit 0c9625b

Please sign in to comment.