I am a n00b and I am trying to create a CA playbook that first locally creates certs, keys etc (using easy-rsa’s pkitool) and then deploys these to the different play_hosts. -I might be going about this the wrong way, but is there a way to register the play_hosts in a list that can then be used when I change play_hosts to be just localhost, and then when I do the deploy go back to the original play_hosts?
-The problem with ‘with_items: groups[‘all’]’ is that it takes that directly from /etc/ansible/hosts rather than using whatever hosts-pattern that was supplied on the command-line - i.e. ‘–limit somehosts’