ansible-role-blockinfile icon indicating copy to clipboard operation
ansible-role-blockinfile copied to clipboard

Ansible role which contains blockinfile module

Results 10 ansible-role-blockinfile issues
Sort by recently updated
recently updated
newest added

``` yaml - name: Add logstash-forwarder to datadog process monitoring blockinfile: dest: /etc/dd-agent/conf.d/process.yaml block: | - name: logstash-forwarder search_string: ['logstash-forwarder'] exact_match: false thresholds: # critical if no server.py is running...

Sometimes it's useful to add markers, other times, not. Is there any way to omit the marker lines?

I've found that using the blockinfile it doesn't add a newline to the end of the marker if it also happens to be the end of the file. The newline...

Hello, I have hard time to figure out how to get the blocks properly formatted. With the task ``` - name: Configure Direcotries in {{apache_conf_path}}/httpd.conf blockinfile: dest: "{{apache_conf_path}}/httpd.conf" backup: "yes"...

Is it possible to get the content from a j2 template file?

Hello, I tried to use the most recent version 0.6 of this module with ansible 1.7.1 and 1.5.4 and it doesn't work at all: ``` - name: Add DB Config...

The following code block: ``` if present and block: # Escape seqeuences like '\n' need to be handled in Ansible 1.x if ANSIBLE_VERSION.startswith('1.'): block = re.sub('', block, '') blocklines =...

I want to use this module, but don't know how to install this at all. I get an (expected) error when using homebrew'd ansible, b/c I didn't install this yet...

This module just helped me out a lot and so I am very happy to see it has gotten accepted into the project. I dont know the right ways to...