--- - name: MikBiLL Install PlayBook hosts: local environment: PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin pre_tasks: - name: "read mikbill config" include_vars: config/mikbill.yaml - name: "read OS config" include_vars: "config/{{ ansible_os_family | lower }}/{{ ansible_distribution_major_version }}/config.yaml" - name: "read timezone" shell: timedatectl status | grep 'Time.zone' | awk '{print $3}' register: timezone - name: "confirm timezone" pause: prompt: "Please confirm your timezone: {{ timezone.stdout }} ?\nPress 'enter' to continue or 'Ctrl+c' and then 'a' to abort" - name: "setup default timezone" set_fact: timezone: stdout: "Europe/Kiev" when: '"/" not in timezone.stdout' - name: "create {{ mikbill.dirs.tmp }}" file: path: "{{ mikbill.dirs.tmp }}" owner: root group: root mode: 0755 state: directory roles: - requirements - packages - dns - php - phing - fpm - disable_eval - ioncube - nginx - hosts - database - mikbill_files - radius - dhcp - sudoers - update - cron - mrtg - settings - selinux - logrotate - final