This repo contains sample configuration for setup nci-ansible-ui quickly, node.js >= 10 is required.
Clone quick setup repo, go into it and install dependencies:
git clone https://github.com/node-ci/nci-ansible-ui-quick-setup && \
cd nci-ansible-ui-quick-setup && \
npm ci --only=prod
run server:
node_modules/.bin/nci
that's all, now you can experiment with it by adding/changing projects, use web interface (on http://127.0.0.1:3000 by default) for run playbooks.
Sample project works with repository which contains sample playbooks (some ping, ps ax and other read commands) and inventory. Inventory defines localhost as target host with following settings:
ansible_host: 127.0.0.1
ansible_user: ansible
ansible_ssh_private_key_file: ~/.ssh/id_rsa_test
you should provide such access in order to run sample project. Localhost also should be in your known hosts file (you can try this access manually to get prompt which can add it).