Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using 'pause' module in dns_records.yml task file #10

Open
jeanmonet opened this issue Jan 1, 2021 · 2 comments
Open

Error using 'pause' module in dns_records.yml task file #10

jeanmonet opened this issue Jan 1, 2021 · 2 comments

Comments

@jeanmonet
Copy link
Contributor

jeanmonet commented Jan 1, 2021

Hi - I just ran into the following error:

ERROR! The 'pause' module bypasses the host loop, which is currently not supported in the free strategy and would instead execute for every host in the inventory list.

The error appears to be in '.../roles/FoxyRoles.ansible-dkim/tasks/dns_records.yml': line 9, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: display DKIM public key DNS record
  ^ here

Code:

- name: display DKIM public key DNS record
pause:
seconds: '{{ dkim_dns_record_pause }}'
prompt: |
################################################################################################
DNS record to add for zone {{ dkim_domain }}:
{{ dkim_dns_record.content | string | b64decode }}
################################################################################################

Host running Ansible:

  • Ubuntu 20.04
  • Ansible 20.10.4
  • Python 3.8.6

After a quick search, I've found others having similar problems:

Any ideas?

Edit: small improvement suggestion on the following line:

src: "/etc/opendkim/keys{{ '' if dkim_same_key else '/' ~ dkim_domain }}/{{ dkim_selector }}.txt"

Replace /etc/opendkim with {{ dkim_opendkim_config_dir }}

@foxycode
Copy link
Contributor

foxycode commented Jan 5, 2021

Looks like a change in Ansible, didn't had this problem before.

@ulvida Did you tried wait_for module earlier when you implemented pause? Could it be solution?

@jeanmonet You can use dkim_dns_record_pause: 0 until this is fixed. For the other suggestion, send PR please.

@jeanmonet
Copy link
Contributor Author

@jeanmonet You can use dkim_dns_record_pause: 0 until this is fixed. For the other suggestion, send PR please.

Just FYI that dkim_dns_record_pause=0 is already the default and it still fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants