# ansible-plcnext **Repository Path**: mirrors_codecentric/ansible-plcnext ## Basic Information - **Project Name**: ansible-plcnext - **Description**: Use this AnsibleĀ® playbook to setup a PLCnext controller - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-10 - **Last Updated**: 2026-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Ansible roles and playbooks for PLCnext Roles and playbooks to provision a PLCnext Control AXC F 3152 from Phoenix Contact. ## Introduction PLCnext is a new generation of PLCs from Phoenix Contact. Their OS is Linux based, with a real-time kernel patch. At codecentric we used PLCnext Controllers to power out smart distancing solution, [SmartDistancR][1], which is a Python application that can calculate the distance between people in a video feed area. The application requires an [EdgeTPU][2] accelerator for close to real-time detection and a network camera. The computed results can be published to a MQTT broker. While working with PLCnext Linux, we found that we were performing some repetitive tasks when setting up new and managing existing controllers, so we created these roles and playbooks to help us save time and reduce the potential for errors when configuring new controllers, so that we can focus on application development instead of hunting down configuration issues. ## Roles | Role | Description | |----------|------------------------------------------------------------------| | `common` | Common tasks for all PLCnext Controllers, like setting defaults. | | `ntp` | Configure `ntpd` for setting the time and date. | | `pip` | Install `pip`. | | `docker` | Install `docker` and `docker-compose`. | ## Getting Started ### Prerequisites In order to use these roles and playbooks, you should have read the following documents: - [Connect the controller to a network](./docs/SETUP_PLC_NETWORK.md) - [Set up SSH access](./docs/SETUP_PLC_SSH.md) - [Running the ansible playbook](./docs/RUNNING_ANSIBLE.md) ## Other Resources - [Link collection of PLCnext guides and other resources](./docs/PLCNEXT_RESOURCES.md) [1]: https://blog.codecentric.de/smart-distancr/ [2]: https://cloud.google.com/edge-tpu