Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@theforeman foreman_pxe_boot_xenserver]# cat ansible/playbooks/configure_foreman_xenserver_pxe_boot.yml
- - hosts: localhost
- remote_user: root
- tasks:
- - name: "Re-run setup to use custom facts"
- setup: ~
- - name: Display all variables/facts known for a host
- debug:
- var: hostvars["localhost"]["ansible_facts"]["ansible_local"]
- - name: Ensure Environment
- foreman_environment:
- name: Ansible
- state: present
- foreman_host: localhost
- foreman_port: 443
- foreman_user: hostvars.localhost.ansible_facts.ansible_local.foreman_username
- foreman_pass: hostvars["localhost"]["ansible_facts"]["ansible_local"]["foreman_password"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement