regexp: "^{{ hostvars[item].ansible_ssh_host }} {{ item }} {{ item }}.{{ pri_domain_name }}"
line: "{{ hostvars[item].ansible_ssh_host }} {{ item }} {{ item }}.{{ pri_domain_name }}"
state: present
- with_items: groups['all']
+ with_items: "{{ groups['all'] }}"
- hosts: all
become: true
regexp: "^{{ hostvars[item].ansible_ssh_host }} {{ item }} {{ item }}.{{ pri_domain_name }}"
line: "{{ hostvars[item].ansible_ssh_host }} {{ item }} {{ item }}.{{ pri_domain_name }}"
state: present
- with_items: groups['all']
+ with_items: "{{ groups['all'] }}"
- hosts: all
become: true