| 1234567891011121314151617181920212223242526272829303132333435363738 |
- ---
- ## https://pve.proxmox.com/wiki/Linux_Container#_guest_operating_system_configuration
- - name: Create /etc/.pve-ignore.hosts
- file:
- path: /etc/.pve-ignore.hosts
- state: touch
- - name: Set dns domain in /etc/hosts
- lineinfile:
- dest=/etc/hosts
- regexp='127.0.1.1.*'
- line="127.0.1.1 {{ansible_hostname }}.{{ ansible_dns.domain }} {{ ansible_hostname }}"
- state=present
- ######################
- - name: install the puppet rpm from a remote repo
- apt:
- deb: https://apt.puppet.com/puppet7-release-{{ ansible_distribution_release }}.deb
- state: present
- - name: Install puppet
- apt:
- name: ['puppet-agent']
- update_cache: yes
- - name: Start puppet
- systemd:
- name: puppet
- state: started
- - name: Enable puppet
- systemd:
- name: puppet
- enabled: yes
- - name: set puppet server
- shell: /opt/puppetlabs/bin/puppet config set server 'puppet.erdo.intranet' --section main
|