This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with the next structure: | |
- vmHash: { vcpu: 1, | |
ram: 1024, | |
storage: 10, | |
vms: [{name: storage1-dev02,ip: 10.199.3.87}, | |
{name: storage2-dev02,ip: 10.199.3.88}, | |
{name: storage3-dev02,ip: 10.199.3.89}] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: getting tty | |
shell: virsh dumpxml {{ item.name }} | grep "tty=" | cut -d= -f3 | cut -d/ -f4 | cut -d\' -f1 | |
#shell: virsh dumpxml log-dev02 | grep "tty=" | cut -d= -f3 | cut -d/ -f4 | cut -d\' -f1 | |
with_items: vmHash.vms | |
register: ntty | |
- name: entering on the shell inside each tty | |
shell: "echo '6' > /dev/pts/{{ item.stdout }}" | |
with_items: ntty.results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi, | |
I am having problems when I use the template module over a ZFS filesystem with NFS mounted with a selinux context for Apache. | |
The command is the next: | |
- name: Base Files - template /cluster/default/apache/created/index.html.j2 | |
template: src=cluster/default/apache/created/index.html.j2 dest=/cluster/default/apache/created/index.html owner=apache group=apache mode=0644 | |
I have also used: | |
- name: Base Files - template /cluster/default/apache/created/index.html.j2 |
NewerOlder