Server IP : 85.214.239.14 / Your IP : 160.79.110.190 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/ansible_collections/community/zabbix/molecule/zabbix_server/ |
Upload File : |
--- - name: Prepare hosts: localhost connection: local pre_tasks: - name: "Create MySQL Container" docker_container: name: mysql-host image: mysql:8.0 state: started recreate: true networks: - name: zabbix env: MYSQL_ROOT_PASSWORD: changeme no_log: true with_items: "{{ molecule_yml.platforms }}" when: - '"mysql" in item.groups' - name: "Create postgresql Container" docker_container: name: postgresql-host image: postgres:13 state: started recreate: true networks: - name: zabbix env: POSTGRES_PASSWORD: changeme no_log: true with_items: "{{ molecule_yml.platforms }}" when: - '"postgresql" in item.groups' - name: Prepare hosts: all tasks: - name: "Create group for imaginary host" add_host: name: imaginary-host groups: - mysql - postgresql changed_when: false - name: "Installing packages on CentOS" yum: name: - net-tools - which - sudo state: present register: installation_dependencies until: installation_dependencies is succeeded when: - ansible_os_family == 'RedHat' - name: "Installing packages on CentOS" yum: name: - mysql state: present register: installation_dependencies until: installation_dependencies is succeeded when: - ansible_os_family == 'RedHat' - inventory_hostname in groups['mysql'] - name: Check if warn parameter can be used for shell module set_fact: produce_warn: False when: ansible_version.full is version("2.14", "<") - name: "Apt update" shell: "apt-get update && echo exit 0 > /usr/sbin/policy-rc.d" args: warn: "{{ produce_warn | default(omit) }}" register: installation_dependencies until: installation_dependencies is succeeded when: - ansible_os_family != 'RedHat' - name: "Installing packages on NON-CentOS" apt: name: - net-tools - apt-utils - python3-pip - gpg-agent - sudo update_cache: true state: present register: installation_dependencies until: installation_dependencies is succeeded when: - ansible_os_family != 'RedHat' - name: "Configure SUDO." lineinfile: dest: /etc/sudoers line: "Defaults !requiretty" state: present - name: "Make sure the docs are installed." lineinfile: dest: /etc/yum.conf line: "tsflags=nodocs" state: absent when: - ansible_os_family == 'RedHat' - name: PyMySQL pip: name: PyMySQL register: installation_dependencies until: installation_dependencies is succeeded when: - inventory_hostname in groups['mysql']