From Insensitive Frog, 3 Weeks ago, written in Plain Text.
  1. ---
  2. - name: Configure Foreman for P2 deployment
  3.   vars:
  4.     server_url: "https://{{ inventory_hostname }}"
  5.     password: "{{ foreman_default_password }}"
  6.     username: admin
  7.   block:
  8.  
  9.     - name: Remove default location
  10.       foreman_location:
  11.         name: Default Location
  12.         state: absent
  13.  
  14.     - name: Create P2 location
  15.       foreman_location:
  16.         name: Point 2 Cavern
  17.         state: present
  18.  
  19.     - name: Remove default organization
  20.       foreman_organization:
  21.         name: Default Organization
  22.         state: absent
  23.  
  24.  
captcha