Skip to content

Commit

Permalink
A little test for docker test
Browse files Browse the repository at this point in the history
  • Loading branch information
cradle8810 committed Oct 28, 2024
1 parent ae7ef56 commit 87e151d
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
3 changes: 2 additions & 1 deletion console.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
- name: Play for console.hayaworld.home
hosts: console
connection: docker
remote_user: hayato
gather_facts: true
become: true
# become: true

vars_files:
- inventories/host_vars/console.yml
Expand Down
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
services:
console:
container_name: console
image: ubuntu:22.04
ports:
- 33389:3389
restart: always
privileged: true
stdin_open: true
tty: true
entrypoint: >
sh -c

Check failure on line 12 in docker-compose.yml

View workflow job for this annotation

GitHub Actions / AnsibleLint

yaml[trailing-spaces]

Trailing spaces
"apt update &&
DEBIAN_FRONTEND=noninteractive apt install -y python3&&
useradd -m hayato
/bin/bash"
23 changes: 23 additions & 0 deletions inventories/hosts_container
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[rui]
192.168.1.100 ansible_user=hayato

[console]
console ansible_user=root privileged=true remote_addr=localhost remote_user=root

[runner]
192.168.1.104 ansible_user=hayato

[runner03]
192.168.1.108 ansible_user=hayato

[tm]
192.168.1.112 ansible_user=hayato

[jenkins]
192.168.1.131 ansible_user=hayato

[skylark]
192.168.1.200 ansible_user=hayato

[macbook]
HayabookAir2023.hayaworld.home ansible_user=hayato

0 comments on commit 87e151d

Please sign in to comment.