title: Ansible copy module requires writable parent directory?
body: <p>Need to set /proc/sys/net/ipv4/conf/all/forwarding to 1</p>
  
  <p>That's can be easily done via command </p>
  
  <pre><code>- name: Enable IPv4 traffic forwarding
    command: echo 1 &gt; /proc/sys/net/ipv4/conf/all/forwarding
  </code></pre>
  
  <p>But that's bad practice - it will be always "changed" task.</p>
  
  <p>So I tried the following:</p>
  
  <pre><code>- name: Enable IPv4 traffic forwarding
    copy: content=1 dest="/proc/sys/net/ipv4/conf/all/forwarding" force=yes
  </code></pre>
  
  <p>Which failed with msg: "Destination /proc/sys/net/ipv4/conf/all not writable"</p>
  
  <p>According to <a href="https://github.com/ansible/ansible-modules-core/blob/d71b9bae893e5cb860eb7717af93d00363b3890c/files/copy.py#L298" rel="nofollow">sources</a> seems like copy always requires parent directory will be writable. But 1) I don't understand why 2) Any other "idiomatic" way to set destination file to required value? </p>