FROM opensuse/tumbleweed

RUN zypper in -y ansible sudo rsyslog python3-pip systemd sudo iproute2

ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8

# Install Ansible inventory file.
RUN mkdir -p /etc/ansible
RUN /bin/echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
COPY hello.yml /

# tests
RUN ansible-playbook hello.yml
RUN locale charmap
