127.0.0.1 domain.omg
127.0.0.1 api.domain.fuck
127.0.0.1 test.domain.DA-NU-NAH
"stderr": "cp: cannot create directory '/var/www/ansibletest': Permission denied"
---
- hosts: keeper
become: true
become_method: sudo
become_user: vpsuser
tasks:
- name: Create test dir
file: >
path={{ item }}
state=directory
with_items:
- ./ansibletest
- name: Create test file
file: >
path={{ item }}
state=touch
with_items:
- ./ansibletest/test.txt
- shell: echo "test" > ./ansibletest/test.txt
- shell: cat ./ansibletest/test.txt
register: out
- debug: var=out.stdout_lines
- shell: whoami
register: out
- debug: var=out.stdout_lines
- name: Copy to WWW root
template: >
src={{ item }}
dest=/var/www/{{ item }}
with_items:
- ansibletest/test.txt
- name: View ls -l /var/www
shell: ls -l /var/www/
register: out
- debug: var=out.stdout_lines
requireModule( name ) {
const modulename = join( this.routesDir, name );
const ModuleInstance = require( modulename )
.default( this.config, this.models, this.utils );
return ModuleInstance;
}
Вот именно. Как вы будете тёте-мастеру-ногтей, которая хочет сайтик, объяснять что такое "валидный код"? Да вы сорветесь и забухаете ))))