Merge branch 'master' of ssh://gitea.mewissen.site:22422/rene/ansible-pull
This commit is contained in:
@@ -76,4 +76,18 @@
|
||||
- dnsutils
|
||||
- unattended-upgrades
|
||||
- "{{ python_passlib_package }}"
|
||||
when: ansible_distribution in [ "Debian", "Ubuntu", "Linux Mint" ]
|
||||
when: ansible_distribution in [ "Debian", "Ubuntu" ]
|
||||
|
||||
- name: system setup | utilities | install utilities (linux mint)
|
||||
tags: packages,system,system setup
|
||||
package:
|
||||
state: latest
|
||||
name:
|
||||
- bat
|
||||
- sudo
|
||||
- htop
|
||||
- eza
|
||||
- dnsutils
|
||||
- unattended-upgrades
|
||||
- "{{ python_passlib_package }}"
|
||||
when: ansible_distribution in [ "Linux Mint" ]
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
enabled: true
|
||||
when: ansible_distribution == "Archlinux"
|
||||
|
||||
- name: "add cronjob for ansible"
|
||||
- name: add cronjob for ansible
|
||||
become: true
|
||||
become_user: root
|
||||
cron:
|
||||
@@ -24,6 +24,23 @@
|
||||
minute: 0
|
||||
hour: 1
|
||||
|
||||
- name: correct crontab for reboot | remove
|
||||
become: true
|
||||
become_user: root
|
||||
cron:
|
||||
name: "generate SSH key on reboot, if missing"
|
||||
job: '[[ -f /etc/ssh/ssh_host_* ]] | ssh-keygen -A'
|
||||
state: absent
|
||||
|
||||
- name: correct crontab for reboot | add
|
||||
become: true
|
||||
become_user: root
|
||||
cron:
|
||||
name: "generate SSH key on reboot, if missing"
|
||||
job: '[[ -f /etc/ssh/ssh_host_* ]] || ssh-keygen -A'
|
||||
state: present
|
||||
special_time: reboot
|
||||
|
||||
# - name: system setup | cron | schedule automatic ansible provisioning
|
||||
# tags: cron
|
||||
# cron:
|
||||
@@ -59,4 +76,4 @@
|
||||
hour: "0"
|
||||
minute: "0"
|
||||
job: "{{ root_home }} + '/bin/cron_pacman'"
|
||||
when: ansible_distribution in ["Archlinux"]
|
||||
when: ansible_distribution in ["Archlinux"]
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
owner: 'root'
|
||||
group: 'root'
|
||||
loop:
|
||||
- { ip: '192.168.1.240', fqdn: 'coruscant.universe.local'}
|
||||
- { ip: '192.168.1.238', fqdn: 'gitea.mewissen.site'}
|
||||
when:
|
||||
- set_hosts is defined
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
- {key: "maillog_file", value: "/var/log/postfix.log"}
|
||||
- {key: "message_size_limit", value: "0"}
|
||||
- {key: "milter_default_action", value: "accept"}
|
||||
- {key: "mydestination", value: "'localhost, kashyyyk, coruscant, $myhostname'"}
|
||||
- {key: "mydestination", value: "'localhost, kashyyyk, $myhostname'"}
|
||||
- {key: "myhostname", value: "{{ hostname | default(ansible_hostname) }}"}
|
||||
- {key: "mynetworks", value: "'{{ mynetworks }}'"}
|
||||
- {key: "mynetworks_style", value: "subnet"}
|
||||
|
||||
Reference in New Issue
Block a user